LibD/src/System/Filesystem/MemoryStream.h
Rtch90 a329000a5b [Add] Copy File method.
[Add] Output streams.
[Add] Memory streams.
2012-09-03 23:20:24 +01:00

27 lines
583 B
C++

#include <boost/scoped_ptr.hpp>
#include "InputStream.h"
#include "OutputStream.h"
namespace saracraft {
namespace filesystem {
struct MemoryStreamBufferData;
class MemoryStreamBuffer : public IInputStreamBuffer, public IOutputStreamBuffer {
boost::scoped_ptr<MemoryStreamBufferData> _data;
public:
MemoryStreamBuffer(void);
~MemoryStreamBuffer(void);
unsigned char PopByte(void);
bool IsEof(void) const;
int GetSize(void) const;
void PutByte(unsigned char byte);
void PopBytes(char* buffer, int bytes);
};
} // Namespace filesystem.
} // Namespace saracraft.