Input half of the byte stream interface.
Definition ibstream.h:36
IOBPreallocMemStream(char *pBuffer, int nCapacity)
Open a stream over a caller-owned buffer.
int Size()
Report how many bytes have been written.
Definition iobpreallocmemstream.h:184
char * mBuffer
Caller-owned byte buffer, which the constructor records and the destructor does not release.
Definition iobpreallocmemstream.h:172
virtual IBStream & Read(void *pDest, int nSize)
virtual int Fail()
Test whether a transfer has failed.
int Capacity()
Report the buffer size passed to the constructor.
virtual OBStream & Reset()
virtual IBStream & Flush()
virtual OBStream & Write(const void *pSrc, int nSize)
virtual IBStream & Seek(int nOffset, int nWhence)
virtual char * Buffer()
Report the caller-owned buffer.
virtual ~IOBPreallocMemStream()
Close the stream.
virtual void SetSize(int nSize)
Record how many bytes a reader may consume.
Output half of the byte stream interface.
Definition obstream.h:25