BloombergLP::bdlsb::FixedMemOutput::FixedMemOutput

Create an empty stream buffer that uses the specified character buffer.

Synopsis

Declared in <bdlsb_fixedmemoutput.h>

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

Description

Create an empty stream buffer that uses the specified character buffer of the specified length. The behavior is undefined unless length == 0 or length > 0 && buffer != 0. Note that buffer is held but not owned.

Parameters

NameDescription
buffercharacter array used as the output area; held, not owned
lengthsize of buffer in bytes