1 #if !defined(__xmemfile_h)
\r
6 //////////////////////////////////////////////////////////
\r
7 class DLL_EXP CxMemFile : public CxFile
\r
10 CxMemFile(BYTE* pBuffer = NULL, DWORD size = 0);
\r
14 BYTE* GetBuffer(bool bDetachBuffer = true);
\r
16 virtual bool Close();
\r
17 virtual size_t Read(void *buffer, size_t size, size_t count);
\r
18 virtual size_t Write(const void *buffer, size_t size, size_t count);
\r
19 virtual bool Seek(long offset, int origin);
\r
20 virtual long Tell();
\r
21 virtual long Size();
\r
22 virtual bool Flush();
\r
24 virtual long Error();
\r
25 virtual bool PutC(unsigned char c);
\r
26 virtual long GetC();
\r
27 virtual char * GetS(char *string, int n);
\r
28 virtual long Scanf(const char *format, void* output);
\r
31 bool Alloc(DWORD nBytes);
\r
36 bool m_bFreeOnClose;
\r
37 long m_Position; //current position
\r
38 long m_Edge; //buffer size
\r