CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
BSResourceNiBinaryStream.h
Go to the documentation of this file.
1#pragma once
2
4#include "RE/E/ErrorCodes.h"
6#include "RE/S/Stream.h"
7
8namespace RE
9{
10 namespace BSResource
11 {
12 class Location;
13 }
14
16 {
17 public:
18 inline static constexpr auto RTTI = RTTI_BSResourceNiBinaryStream;
19
21 {
22 public:
23 };
24
26 BSResourceNiBinaryStream(const char* a_fileName);
27 BSResourceNiBinaryStream(const std::string& a_fileName);
28 ~BSResourceNiBinaryStream() override; // 00
29
30 // override (NiBinaryStream)
31 bool good() const override; // 01 - { return static_cast<bool>(stream); }
32 void seek(std::int32_t a_numBytes) override; // 02
33 std::uint32_t tell() const override; // 03 - { return streamPos; }
34 void get_info(BufferInfo& a_buf) override; // 04
35 void set_endian_swap(bool a_doSwap) override; // 05
36
37 // members
40 std::uint32_t streamPos; // 30
42
43 private:
44 BSResourceNiBinaryStream* ctor(const char* a_name, bool a_writeable = false, BSResource::Location* a_optionalStart = 0);
45 void dtor();
46 };
47 static_assert(sizeof(BSResourceNiBinaryStream) == 0x38);
48}
Definition: Location.h:17
Definition: BSResourceNiBinaryStream.h:16
std::uint32_t streamPos
Definition: BSResourceNiBinaryStream.h:40
BSResourceNiBinaryStream(const char *a_fileName)
bool good() const override
BSTSmartPointer< BSResource::Stream > stream
Definition: BSResourceNiBinaryStream.h:38
void set_endian_swap(bool a_doSwap) override
void get_info(BufferInfo &a_buf) override
std::uint32_t tell() const override
BSResourceNiBinaryStream(const std::string &a_fileName)
void seek(std::int32_t a_numBytes) override
static constexpr auto RTTI
Definition: BSResourceNiBinaryStream.h:18
BSResource::ErrorCode lastError
Definition: BSResourceNiBinaryStream.h:41
BufferType * buffer
Definition: BSResourceNiBinaryStream.h:39
Definition: BSTSmartPointer.h:37
Definition: NiBinaryStream.h:6
ErrorCode
Definition: ErrorCodes.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSResourceNiBinaryStream
Definition: Offsets_RTTI.h:2068
Definition: BSResourceNiBinaryStream.h:21
Definition: NiBinaryStream.h:15