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

Name

Description

buffer

new output character array; held, not owned

length

size of buffer in bytes

Created with MrDocs