Create an OverflowMemOutput using the specified initial output buffer.
Declared in <bdlsb_overflowmemoutput.h>
OverflowMemOutput(
char* buffer,
std::size_t length,
bslma::Allocator* basicAllocator = 0);
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.
| Name | Description |
|---|---|
| buffer | initial client-supplied character buffer |
| length | size of buffer in bytes |
| basicAllocator | memory allocator; null uses the default |