55 TINT FlushWriteBuffer();
56 TINT ReadUnbuffered(
void* dst,
TUINT size );
Core file system interface for the Toshi engine.
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TFileSystem(const TCHAR *a_szName)
TFile(TFileSystem *a_pFS)
virtual ~TNativeFileSystem()
TNativeFileSystem(const TCHAR *name)
virtual TBOOL GetFirstFile(const TString8 &a_rcPath, TString8 &a_rOutFileName, TFINDFILE a_ui8Flags) OVERRIDE
Finds out what's the first file at the specified path.
virtual TString8 MakeInternalPath(const TString8 &a_rcPath) OVERRIDE
Not documented.
virtual TBOOL MakeDirectory(const TString8 &a_rcDirectory)
virtual TBOOL GetNextFile(TString8 &a_rOutFileName, TFINDFILE a_ui8Flags) OVERRIDE
Not documented.
virtual TBOOL RemoveFile(const TString8 &a_rcFileName) OVERRIDE
Removes specified file.
virtual void DestroyFile(TFile *a_pFile) OVERRIDE
Destroys specified file.
virtual TFile * CreateFile(const TString8 &a_rcFileName, TFILEMODE a_eFileMode) OVERRIDE
Creates file.
TUINT32 m_WriteBufferUsed
TNativeFile(TNativeFileSystem *a_pFileSystem)
virtual TSIZE Write(const void *a_pSrc, TSIZE a_uiSize) OVERRIDE
Writes specified number of bytes to the file from the buffer.
TBOOL Open(const TString8 &a_FileName, TFILEMODE a_Mode)
virtual TINT PutWChar(TWCHAR a_wcCharacter) OVERRIDE
Writes one character of type wchar to the file.
virtual TINT PutCChar(TCHAR a_cCharacter) OVERRIDE
Writes one character of type TCHAR to the file.
static constexpr TUINT32 BUFFER_SIZE
virtual TSIZE Read(void *a_pDst, TSIZE a_uiSize) OVERRIDE
Reads specified number of bytes from the file into the buffer.
virtual TBOOL Seek(TINT a_iOffset, TSEEK a_eOrigin=TSEEK_CUR) OVERRIDE
Shifts current file cursor based on the specified offset and origin.
virtual TSIZE GetSize() OVERRIDE
virtual void FlushBuffers() OVERRIDE
Flushes write buffers.
virtual TINT WPrintf(const TWCHAR *a_wszFormat,...) OVERRIDE
Analogue of wprintf but writes result to the file.
virtual TWCHAR GetWChar() OVERRIDE
Reads one character of type wchar from the file.
virtual TCHAR GetCChar() OVERRIDE
Reads one character of type TCHAR from the file.
virtual TUINT64 GetDate() OVERRIDE
virtual TINT CPrintf(const TCHAR *a_szFormat,...) OVERRIDE
Analogue of printf but writes result to the file.
virtual TSIZE Tell() OVERRIDE
TUINT32 m_RBufferPosition