@ TCOMPRESS_ERROR_WRONG_MAGIC
@ TCOMPRESS_ERROR_WRONG_HEADERSIZE
@ TCOMPRESS_ERROR_WRONG_SIZE
@ TCOMPRESS_ERROR_WRONG_VERSION
@ BTECOffsetFlag_BigOffset
@ BTECOffsetFlag_OffsetMask
Core file system interface for the Toshi engine.
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
static constexpr TUINT32 HEADER_SIZE_13
static TINT GetCommand(TFile *file, TBOOL &hasOffset, TUINT32 &size, TINT &offset)
static TBOOL ms_bIsBigEndian
static constexpr TUINT32 HEADER_SIZE_12
static constexpr TINT maxlength
static uintptr_t Decompress(TFile *file, TCompress::Header *header, TBYTE *buffer, TUINT32 bufferSize)
static int8_t GetHeader(TFile *file, TCompress::Header &btecHeader)
static size_t Compress(TFile *file, TBYTE *data, TUINT32 size, TUINT32 unused, TBOOL isBigEndian)