MezzanineEngine
|
Go to the documentation of this file.
40 #ifndef _resourcememorystream_h
41 #define _resourcememorystream_h
52 #ifdef USENEWDATASTREAM
54 #else //USENEWDATASTREAM
71 MemoryStream(
const size_t& BufferSize,
bool FreeOnClose =
true,
bool ReadOnly =
false);
77 MemoryStream(
void* Buffer,
const size_t& BufferSize,
bool FreeOnClose =
false,
bool ReadOnly =
false);
86 UInt8* GetBufferStart()
const;
89 UInt8* GetBufferPosition()
const;
92 UInt8* GetBufferEnd()
const;
95 void SetFreeOnClose(
bool FreeOnClose);
101 virtual size_t Read(
void* Buffer,
const size_t& Count);
103 virtual size_t Write(
const void* Buffer,
const size_t& Count);
105 virtual void Advance(
const StreamOff Count);
107 virtual void SetStreamPosition(
StreamPos Position);
111 virtual StreamPos GetStreamPosition(
bool Read =
true);
113 virtual bool EoF()
const;
115 virtual void Close();
121 virtual size_t ReadLine(
Char8* Buffer,
size_t MaxCount,
const String& Delim =
"\n");
123 virtual size_t SkipLine(
const String& Delim =
"\n");
125 #endif //USENEWDATASTREAM