Reinitialize this stream buffer to use the specified character buffer.
Synopsis
Declared in <bdlsb_fixedmeminstreambuf.h>
FixedMemInStreamBuf*
pubsetbuf(
char* buffer,
std::streamsize length);
Description
Reinitialize this stream buffer to use the specified character buffer having the specified length. Return the address of this modifiable stream buffer. The behavior is undefined unless buffer != 0 && length > 0 or length == 0. Upon reinitialization for use of the new buffer, neither the content nor the next input position indicator is preserved. Note that buffer is held but not owned.
Return Value
address of this modifiable stream buffer
Parameters
Name |
Description |
buffer |
character buffer to use |
length |
length of |
Created with MrDocs