CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
BSFile.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiFile.h"
4
5namespace RE
6{
7 class BSFile : public NiFile
8 {
9 public:
10 inline static constexpr auto RTTI = RTTI_BSFile;
11
12 virtual ~BSFile(); // 00
13
14 // override (NiFile)
15 virtual void seek(std::int32_t a_numBytes) override; // 02
16 virtual void set_endian_swap(bool a_doSwap) override; // 05
17 virtual void seek(std::int32_t a_offset, std::int32_t a_from) override; // 06
18 virtual std::uint32_t size() const override; // 07
19
20 // add
21 virtual void Unk_08(void); // 08
22 virtual void Unk_09(void); // 09
23 virtual void Unk_0A(void); // 0A
24 virtual void Unk_0B(void); // 0B
25 virtual void Unk_0C(void); // 0C
26 virtual void Unk_0D(void); // 0D
27 virtual void Unk_0E(void); // 0E
28 virtual void Unk_0F(void); // 0F
29 virtual void Unk_10(void); // 10
30 virtual void Unk_11(void); // 11
31 virtual void Unk_12(void); // 12
32
33 // members
34 bool useAuxBuffer; // 048
35 std::uint8_t pad049; // 049
36 std::uint16_t pad04A; // 04A
37 std::uint32_t pad04C; // 04C
38 char* auxBuffer; // 050
39 std::int32_t auxTrueFilePos; // 058
40 std::uint32_t auxBufferMinIndex; // 05C
41 std::uint32_t auxBufferMaxIndex; // 060
43 std::uint32_t result; // 168
44 std::uint32_t ioSize; // 16C
45 std::uint32_t trueFilePos; // 170
46 std::uint32_t fileSize; // 174
47 bool virtualAlloc; // 178
48 std::uint8_t unk179; // 179
49 std::uint16_t unk17A; // 17A
50 };
51 static_assert(sizeof(BSFile) == 0x180);
52}
Definition: BSFile.h:8
std::uint16_t unk17A
Definition: BSFile.h:49
virtual void Unk_0E(void)
virtual void Unk_0C(void)
std::uint32_t fileSize
Definition: BSFile.h:46
virtual void set_endian_swap(bool a_doSwap) override
std::uint16_t pad04A
Definition: BSFile.h:36
virtual void Unk_0B(void)
virtual void Unk_0D(void)
std::int32_t auxTrueFilePos
Definition: BSFile.h:39
bool useAuxBuffer
Definition: BSFile.h:34
std::uint32_t auxBufferMaxIndex
Definition: BSFile.h:41
char * auxBuffer
Definition: BSFile.h:38
std::uint32_t ioSize
Definition: BSFile.h:44
std::uint8_t unk179
Definition: BSFile.h:48
std::uint32_t pad04C
Definition: BSFile.h:37
bool virtualAlloc
Definition: BSFile.h:47
virtual ~BSFile()
virtual void Unk_12(void)
static constexpr auto RTTI
Definition: BSFile.h:10
std::uint8_t pad049
Definition: BSFile.h:35
char fileName[WinAPI::MAX_PATH]
Definition: BSFile.h:42
virtual void seek(std::int32_t a_offset, std::int32_t a_from) override
virtual void Unk_0F(void)
virtual void seek(std::int32_t a_numBytes) override
std::uint32_t auxBufferMinIndex
Definition: BSFile.h:40
std::uint32_t result
Definition: BSFile.h:43
virtual void Unk_09(void)
virtual void Unk_08(void)
virtual void Unk_11(void)
virtual void Unk_10(void)
virtual void Unk_0A(void)
virtual std::uint32_t size() const override
std::uint32_t trueFilePos
Definition: BSFile.h:45
Definition: NiFile.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSFile
Definition: Offsets_RTTI.h:1710
constexpr auto MAX_PATH
Definition: WinAPI.h:9