BloombergLP::bdlsb::OverflowMemOutput::OverflowMemOutput

Create an OverflowMemOutput using the specified initial output buffer.

Synopsis

Declared in <bdlsb_overflowmemoutput.h>

OverflowMemOutput(
    char* buffer,
    std::size_t length,
    bslma::Allocator* basicAllocator = 0);

Description

Create an OverflowMemOutput using the specified buffer of the specified length as the initial output buffer. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless buffer != 0 && length > 0. Note that this stream buffer does not assume ownership of buffer.

Parameters

NameDescription
bufferinitial client-supplied character buffer
lengthsize of buffer in bytes
basicAllocatormemory allocator; null uses the default