Reinitialize this stream buffer to use the specified character buffer.

Synopsis

Declared in <bdlsb_fixedmeminput.h>

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

Description

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.

Return Value

pointer providing modifiable access to this stream buffer

Parameters

Name

Description

buffer

character buffer to read from (held, not owned)

length

size of buffer in bytes

Created with MrDocs