ns/dev/3.2-LUA/source/ui/MemoryInputStream.h
tankefugl f0bcdd7a9f Branched for LUA development.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@266 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-07-13 11:35:45 +00:00

28 lines
No EOL
721 B
C++

#ifndef MEMORYINPUTSTREAM_H
#define MEMORYINPUTSTREAM_H
#include "vgui_inputstream.h"
class MemoryInputStream : public vgui::InputStream
{
public:
MemoryInputStream(void);
MemoryInputStream(uchar* pData, int nLength);
virtual ~MemoryInputStream(void);
virtual void setSource(uchar* pData, int nLength);
virtual void seekStart(bool& success);
virtual void seekRelative(int count, bool& success);
virtual void seekEnd(bool& success);
virtual int getAvailable(bool& success);
virtual uchar readUChar(bool& success);
virtual void readUChar(uchar* buf, int count, bool& success);
virtual void close(bool& success);
private:
uchar* m_pData;
int m_DataLen;
int m_ReadPos;
};
#endif