diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-11-01 23:32:22 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-11-01 23:32:22 +0800 |
commit | f68cc9034a576b6f91cf0db0344ece971944c973 (patch) | |
tree | 123744e85445f51d058b74d9c9fb2174f6abefd7 /archive/hge/CxImage/xmemfile.h | |
parent | 1981e9bc81e92f479c725e6ac60ff3bd419cefd0 (diff) | |
download | bullet-lab-remix-f68cc9034a576b6f91cf0db0344ece971944c973.tar.xz |
Move hge to an archive.
Finish the main part of smPath.
This is a C++ project, add C++ tags to all source code that
could be identified as C source files.
Diffstat (limited to 'archive/hge/CxImage/xmemfile.h')
-rw-r--r-- | archive/hge/CxImage/xmemfile.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/archive/hge/CxImage/xmemfile.h b/archive/hge/CxImage/xmemfile.h deleted file mode 100644 index e132db3..0000000 --- a/archive/hge/CxImage/xmemfile.h +++ /dev/null @@ -1,42 +0,0 @@ -#if !defined(__xmemfile_h)
-#define __xmemfile_h
-
-#include "xfile.h"
-
-//////////////////////////////////////////////////////////
-class DLL_EXP CxMemFile : public CxFile
-{
-public:
- CxMemFile(uint8_t* pBuffer = NULL, uint32_t size = 0);
- ~CxMemFile();
-
- bool Open();
- uint8_t* GetBuffer(bool bDetachBuffer = true);
-
- virtual bool Close();
- virtual size_t Read(void *buffer, size_t size, size_t count);
- virtual size_t Write(const void *buffer, size_t size, size_t count);
- virtual bool Seek(int32_t offset, int32_t origin);
- virtual int32_t Tell();
- virtual int32_t Size();
- virtual bool Flush();
- virtual bool Eof();
- virtual int32_t Error();
- virtual bool PutC(uint8_t c);
- virtual int32_t GetC();
- virtual char * GetS(char *string, int32_t n);
- virtual int32_t Scanf(const char *format, void* output);
-
-protected:
- bool Alloc(uint32_t nBytes);
- void Free();
-
- uint8_t* m_pBuffer;
- uint32_t m_Size;
- bool m_bFreeOnClose;
- int32_t m_Position; //current position
- int32_t m_Edge; //buffer size
- bool m_bEOF;
-};
-
-#endif
|