[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::OverflowMemOutStreamBuf
:relfileprefix: ../../../
:mrdocs:

Create an empty stream buffer with the specified initial output buffer&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;overflowmemoutstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
OverflowMemOutStreamBuf(
    char* buffer,
    std::size&lowbar;t size,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create an empty stream buffer that uses the specified `buffer` as an initial output buffer of the specified `size` (in bytes)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently&hyphen;installed default allocator is used&period; The behavior is undefined unless `buffer` points to a valid sequence of positive `size` characters&period; Note that this stream buffer does not assume ownership of `buffer`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| initial client&hyphen;supplied output buffer
| *size*
| size of `buffer` in bytes
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
