Reinitialize this stream buffer to use the specified character buffer.
Declared in <bdlsb_fixedmeminput.h>
FixedMemInput*
pubsetbuf(
char const* buffer,
std::streamsize length);
Reinitialize this stream buffer to use the specified character buffer having the specified length. Return a pointer providing modifiable access to this stream buffer. The behaviour is undefined unless buffer != 0 && length > 0 or length == 0. Upon reinitialization for use of the new buffer, the position indicator is set to the beginning of the buffer. Note that buffer is held but not owned.
pointer providing modifiable access to this stream buffer
| Name | Description |
|---|---|
| buffer | character buffer to read from (held, not owned) |
| length | size of buffer in bytes |