14 struct TESBitArrayFile;
66 bool ReadData(
void* a_buf, std::uint32_t a_size);
67 bool Seek(std::uint32_t a_offset);
138 static_assert(
sizeof(
TESFile) == 0x4C8);
constexpr bool all(Args... a_args) const noexcept requires(std
Definition: EnumSet.h:99
OpenMode
Definition: NiFile.h:14
bool SeekNextForm(bool a_skipIgnored)
std::uint64_t unk020
Definition: TESFile.h:77
char path[REX::W32::MAX_PATH]
Definition: TESFile.h:88
constexpr std::uint32_t GetCurrentChunkID() const noexcept
Definition: TESFile.h:57
std::uint32_t GetCombinedIndex() const noexcept
Definition: TESFile.h:53
void * reservedDecompressionBuffer
Definition: TESFile.h:133
std::uint64_t unk2D8
Definition: TESFile.h:106
std::uint8_t unk028
Definition: TESFile.h:78
TESBitArrayFile * formIDBitArray
Definition: TESFile.h:86
REX::EnumSet< Error, std::uint32_t > lastError
Definition: TESFile.h:72
std::uint32_t currentchunkID
Definition: TESFile.h:97
RecordFlag
Definition: TESFile.h:38
std::uint32_t pad02C
Definition: TESFile.h:81
constexpr bool IsLight() const noexcept
Definition: TESFile.h:63
void * unk4C0
Definition: TESFile.h:136
std::uint32_t pad004
Definition: TESFile.h:73
TESBitArrayFile * formUserDataBitArray
Definition: TESFile.h:84
std::uint32_t unk430
Definition: TESFile.h:114
constexpr bool IsLocalized() const noexcept
Definition: TESFile.h:64
BSFile * file
Definition: TESFile.h:83
char fileName[REX::W32::MAX_PATH]
Definition: TESFile.h:87
BSString summary
Definition: TESFile.h:129
BSFile * lockedFile
Definition: TESFile.h:82
FORM saveform
Definition: TESFile.h:103
std::uint32_t flags
Definition: TESFile.h:115
bool ReadData(void *a_buf, std::uint32_t a_size)
std::uint32_t fileOffset
Definition: TESFile.h:100
std::string_view GetFilename() const noexcept
Definition: TESFile.h:58
std::uint32_t decompressedFormBufferSize
Definition: TESFile.h:131
std::uint32_t pad464
Definition: TESFile.h:121
BSSimpleList< const char * > masters
Definition: TESFile.h:118
REX::EnumSet< RecordFlag, std::uint32_t > recordFlags
Definition: TESFile.h:116
bool isBigEndian
Definition: TESFile.h:109
FORM currentform
Definition: TESFile.h:96
std::uint64_t unk018
Definition: TESFile.h:76
constexpr std::uint32_t GetPartialIndex() const noexcept
Definition: TESFile.h:61
std::uint64_t saveChunkOffset
Definition: TESFile.h:105
std::uint32_t formoffset
Definition: TESFile.h:101
std::uint32_t pad4BC
Definition: TESFile.h:135
std::uint16_t pad02A
Definition: TESFile.h:80
Error
Definition: TESFile.h:20
bool CloseTES(bool a_force)
std::uint32_t currRefOffset
Definition: TESFile.h:95
std::uint32_t firstCellOffset
Definition: TESFile.h:91
constexpr std::uint32_t GetCurrentSubRecordSize() const noexcept
Definition: TESFile.h:56
TESFile * threadSafeParent
Definition: TESFile.h:74
TESObjectCELL * currCell
Definition: TESFile.h:94
std::uint8_t unk029
Definition: TESFile.h:79
std::uint32_t pad4AC
Definition: TESFile.h:132
bool IsFormInMod(FormID a_formID) const
std::uint32_t saveFormOffset
Definition: TESFile.h:104
char * decompressedFormBuffer
Definition: TESFile.h:130
std::uint8_t pad2EB
Definition: TESFile.h:111
std::uint8_t GetCompileIndex() const noexcept
Definition: TESFile.h:54
std::uint32_t bufferAllocSize
Definition: TESFile.h:90
std::uint32_t pad43C
Definition: TESFile.h:117
BSString createdBy
Definition: TESFile.h:128
char * buffer
Definition: TESFile.h:89
void * threadSafeFileMap
Definition: TESFile.h:75
std::uint32_t reservedDecompressionBufferSize
Definition: TESFile.h:134
std::uint8_t compileIndex
Definition: TESFile.h:124
std::uint32_t masterCount
Definition: TESFile.h:120
std::uint32_t actualChunkSize
Definition: TESFile.h:98
std::uint16_t GetSmallFileCompileIndex() const noexcept
Definition: TESFile.h:60
std::uint32_t pad47C
Definition: TESFile.h:127
std::uint64_t unk2E0
Definition: TESFile.h:107
std::uint8_t pad479
Definition: TESFile.h:125
std::uint32_t GetCurrentSubRecordType()
std::uint32_t currCellOffset
Definition: TESFile.h:92
bool OpenTES(NiFile::OpenMode a_accessMode, bool a_lock)
TESFile ** masterPtrs
Definition: TESFile.h:122
float unk42C
Definition: TESFile.h:113
std::uint16_t smallFileCompileIndex
Definition: TESFile.h:126
REX::W32::FILETIME deletedFormTime
Definition: TESFile.h:123
BSSimpleList< std::uint64_t * > mastersData
Definition: TESFile.h:119
TESBitArrayFile * formVersionBitArray
Definition: TESFile.h:85
std::uint8_t unk2E8
Definition: TESFile.h:108
std::uint32_t unk274
Definition: TESFile.h:93
std::uint8_t unk2EA
Definition: TESFile.h:110
REX::W32::WIN32_FIND_DATAA fileData
Definition: TESFile.h:112
bool Seek(std::uint32_t a_offset)
TESFile * Duplicate(std::uint32_t a_cacheSize=0x4000)
std::uint32_t filesize
Definition: TESFile.h:99
std::uint32_t chunkoffset
Definition: TESFile.h:102
Definition: TESObjectCELL.h:115
constexpr auto MAX_PATH
Definition: BASE.h:35
Definition: AbsorbEffect.h:6
FormType
Definition: FormTypes.h:139
std::uint32_t FormID
Definition: BSCoreTypes.h:5
Definition: KERNEL32.h:391