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.

Synopsis

Declared in <bdlsb_fixedmeminput.h>

FixedMemInput*
pubsetbuf(
    char const* buffer,
    std::streamsize length);

Created with MrDocs