#include <TNativeFile_Win.h>
Public Member Functions | |
TNativeFile (TNativeFileSystem *a_pFileSystem) | |
TNativeFile (const TNativeFile &other) | |
~TNativeFile () | |
virtual TSIZE | Read (void *a_pDst, TSIZE a_uiSize) OVERRIDE |
Reads specified number of bytes from the file into the buffer. | |
virtual TSIZE | Write (const void *a_pSrc, TSIZE a_uiSize) OVERRIDE |
Writes specified number of bytes to the file from 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 | Tell () OVERRIDE |
virtual void | FlushBuffers () OVERRIDE |
Flushes write buffers. | |
virtual TSIZE | GetSize () OVERRIDE |
virtual TUINT64 | GetDate () OVERRIDE |
virtual TCHAR | GetCChar () OVERRIDE |
Reads one character of type TCHAR from the file. | |
virtual TWCHAR | GetWChar () OVERRIDE |
Reads one character of type wchar from the file. | |
virtual TINT | PutCChar (TCHAR a_cCharacter) OVERRIDE |
Writes one character of type TCHAR to the file. | |
virtual TINT | PutWChar (TWCHAR a_wcCharacter) OVERRIDE |
Writes one character of type wchar to the file. | |
virtual TINT | CPrintf (const TCHAR *a_szFormat,...) OVERRIDE |
Analogue of printf but writes result to the file. | |
virtual TINT | WPrintf (const TWCHAR *a_wszFormat,...) OVERRIDE |
Analogue of wprintf but writes result to the file. | |
TBOOL | Open (const TString8 &a_FileName, TFILEMODE a_Mode) |
void | Close () |
![]() | |
TFile (TFileSystem *a_pFS) | |
TFile (const TFile &a_rOther) | |
virtual | ~TFile () |
TFileSystem * | GetFileSystem () const |
void | Destroy () |
Static Public Attributes | |
static constexpr TUINT32 | BUFFER_SIZE = 0x800 |
Protected Attributes | |
void * | m_Handle |
TUINT32 | m_Position |
TUINT32 | m_RBufferPosition |
TUINT32 | m_PrevBufferPos |
TUINT32 | m_LastBufferSize |
TCHAR * | m_RBuffer |
TCHAR * | m_WBuffer |
TUINT32 | m_WriteBufferUsed |
TBOOL | m_WriteBuffered |
Additional Inherited Members | |
![]() | |
static TString8 | ConcatPath (const TString8 &a_rcPath1, const TString8 &a_rcPath2) |
static TString8 | SimplifyPath (const TString8 &a_rcPath) |
static TFile * | Create (const TString8 &a_rcFilename, TFILEMODE a_eMode=TFILEMODE_READ) |
Definition at line 22 of file TNativeFile_Win.h.
TNativeFile::TNativeFile | ( | TNativeFileSystem * | a_pFileSystem | ) |
Definition at line 162 of file TNativeFile_Win.cpp.
TNativeFile::TNativeFile | ( | const TNativeFile & | other | ) |
Definition at line 176 of file TNativeFile_Win.cpp.
TNativeFile::~TNativeFile | ( | ) |
Definition at line 191 of file TNativeFile_Win.cpp.
void TNativeFile::Close | ( | ) |
Definition at line 638 of file TNativeFile_Win.cpp.
Analogue of printf but writes result to the file.
Implements TFile.
Definition at line 524 of file TNativeFile_Win.cpp.
|
virtual |
Flushes write buffers.
Reimplemented from TFile.
Definition at line 662 of file TNativeFile_Win.cpp.
|
virtual |
Reads one character of type TCHAR from the file.
Implements TFile.
Definition at line 456 of file TNativeFile_Win.cpp.
|
virtual |
Reimplemented from TFile.
Definition at line 571 of file TNativeFile_Win.cpp.
|
virtual |
Implements TFile.
Definition at line 558 of file TNativeFile_Win.cpp.
|
virtual |
Reads one character of type wchar from the file.
Implements TFile.
Definition at line 479 of file TNativeFile_Win.cpp.
Definition at line 584 of file TNativeFile_Win.cpp.
Writes one character of type TCHAR to the file.
Implements TFile.
Definition at line 502 of file TNativeFile_Win.cpp.
Writes one character of type wchar to the file.
Implements TFile.
Definition at line 513 of file TNativeFile_Win.cpp.
Reads specified number of bytes from the file into the buffer.
a_pDst | destination buffer |
a_uiSize | number of bytes to read |
Implements TFile.
Definition at line 289 of file TNativeFile_Win.cpp.
Shifts current file cursor based on the specified offset and origin.
a_iOffset | number of characters to shift the position |
a_eOrigin | position to which a_iOffset is added |
Implements TFile.
Definition at line 426 of file TNativeFile_Win.cpp.
|
virtual |
Implements TFile.
Definition at line 419 of file TNativeFile_Win.cpp.
Analogue of wprintf but writes result to the file.
Implements TFile.
Definition at line 541 of file TNativeFile_Win.cpp.
Writes specified number of bytes to the file from the buffer.
a_pSrc | sourde buffer |
a_uiSize | number of bytes to write |
Implements TFile.
Definition at line 358 of file TNativeFile_Win.cpp.
|
staticconstexpr |
Definition at line 25 of file TNativeFile_Win.h.
|
protected |
Definition at line 59 of file TNativeFile_Win.h.
|
protected |
Definition at line 63 of file TNativeFile_Win.h.
|
protected |
Definition at line 60 of file TNativeFile_Win.h.
|
protected |
Definition at line 62 of file TNativeFile_Win.h.
|
protected |
Definition at line 64 of file TNativeFile_Win.h.
|
protected |
Definition at line 61 of file TNativeFile_Win.h.
|
protected |
Definition at line 65 of file TNativeFile_Win.h.
|
protected |
Definition at line 67 of file TNativeFile_Win.h.
|
protected |
Definition at line 66 of file TNativeFile_Win.h.