|
| CXMemFile (unsigned int nGrowBytes=DefaultGrowSize, bool allowException=true) |
|
| CXMemFile (const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory, bool allowException=true) |
|
virtual fileuint | GetPosition () const |
|
virtual fileuint | Seek (longint offset, CXFile::SeekPosition nFrom) |
|
virtual bool | SetLength (fileuint dwNewLen) |
|
virtual unsigned int | Read (void *buffer, unsigned int maxByteToRead) |
|
virtual void | Write (const void *buffer, unsigned int byteToWrite) |
|
virtual void | Abort () |
|
virtual void | Flush () |
|
virtual void | Close () |
|
virtual fileuint | GetLength () const |
|
void | Attach (const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory) |
|
const unsigned char * | GetBuffer () const |
|
unsigned char * | Detach () |
|
| CXFile (bool allowException=true) |
|
| CXFile (xFileHandle hFile, bool allowException=true) |
|
| CXFile (LPCTSTR lpszFileName, unsigned int openFlags) |
|
| CXFile (CFile *pfile, bool allowException=true) |
| allowException = false then no exception is send by the class which return false instead
|
|
virtual CXString | GetFileName () const |
|
virtual CXString | GetFilePath () const |
|
virtual void | SetFilePath (LPCTSTR lpszNewName) |
|
virtual bool | Open (LPCTSTR lpszFileName, unsigned int openMode, CXFileException *pError=NULL) |
| Open does not send any exception but can fill CXFileException with the appropriate cause of the failing.
|
|
fileuint | SeekToEnd () |
|
void | SeekToBegin () |
|
|
enum | OpenFlags {
modeRead = 0x00000
, modeWrite = 0x00001
, modeReadWrite = 0x00002
, readFlags = modeRead|modeWrite|modeReadWrite
,
shareExclusive = 0x00010
, shareDenyWrite = 0x00020
, shareDenyRead = 0x00030
, shareDenyNone = 0x00040
,
shareFlags = shareExclusive| shareDenyWrite|shareDenyRead|shareDenyNone
, typeUnicode = 0x00400
, typeUtf8 = 0x00800
, modeCreate = 0x01000
,
modeNoTruncate = 0x02000
, typeText = 0x04000
, typeBinary = 0x08000
, noException = 0x100000
,
specificFlags = 0x10000000
} |
| Specify the open mode for file. More...
|
|
enum | SeekPosition { begin = 0x00
, current = 0x01
, end = 0x02
} |
|
typedef enum CXFile::SeekPosition | SeekPosition |
|
◆ Abort()
◆ Close()
◆ Flush()
◆ GetLength()
◆ GetPosition()
◆ Read()
◆ Seek()
◆ SetLength()
◆ Write()
The documentation for this class was generated from the following file:
- D:/VS2022-PolygonCruncherSDK-Full-IO/SDK/Includes/XMemFile.h