Library: Foundation
Package: Streams
Header: Poco/MemoryStream.h
BasicMemoryStreamBuf is a simple implementation of a stream buffer for reading and writing from a memory area.
This streambuf only supports unidirectional streams. In other words, the BasicBufferedStreamBuf can be used for the implementation of an istream or an ostream, but not for an iostream.
Direct Base Classes: std::basic_streambuf < ch, tr >
All Base Classes: std::basic_streambuf < ch, tr >
Member Functions: charsWritten, overflow, reset, sync, underflow
typedef std::basic_streambuf < ch, tr > Base;
typedef std::basic_ios < ch, tr > IOS;
typedef tr char_traits;
typedef ch char_type;
typedef typename Base::int_type int_type;
typedef typename Base::off_type off_type;
typedef typename Base::pos_type pos_type;
BasicMemoryStreamBuf(
char_type * pBuffer,
std::streamsize bufferSize
);
std::streamsize charsWritten() const;
virtual int_type overflow(
int_type c
);
void reset();
Resets the buffer so that current read and write positions will be set to the beginning of the buffer.
virtual int sync();
virtual int_type underflow();