BloombergLP::bdlsb::FixedMemOutput::pubsetbuf

Reset the internal buffer of this stream to the specified buffer.

Synopsis

Declared in <bdlsb_fixedmemoutput.h>

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

Description

Reset the internal buffer of this stream to the specified buffer of the specified length. Note that the next write operation will start at the beginning of buffer.

Return Value

a pointer providing modifiable access to this stream buffer

Parameters

NameDescription
buffernew output character array; held, not owned
lengthsize of buffer in bytes