Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CCustomMemFile Class Reference
Inheritance diagram for CCustomMemFile:
CXMemFile CXFile

Public Types

enum  _Flags { MEMFILE_DEFAULT = 0x00 , MEMFILE_FASTGROW = 0x01 }
 
typedef enum CCustomMemFile::_Flags Flags
 
- Public Types inherited from CXFile
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
 

Public Member Functions

 CCustomMemFile (unsigned int flags=MEMFILE_FASTGROW, unsigned int nGrowBytes=1024)
 
 CCustomMemFile (const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory, unsigned int flags=MEMFILE_DEFAULT)
 
- Public Member Functions inherited from CXMemFile
 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 charGetBuffer () const
 
unsigned charDetach ()
 
- Public Member Functions inherited from CXFile
 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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from CXMemFile
static unsigned charAlloc (SIZET nBytes)
 
static void Free (unsigned char *lpMem)
 

The documentation for this class was generated from the following file: