[#BloombergLP-bslx-ByteOutStream-2constructor-074]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/ByteOutStream.adoc[ByteOutStream]::ByteOutStream
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bslx&lowbar;byteoutstream&period;h&gt;`

Create an empty output byte stream using the specified `versionSelector`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslx/ByteOutStream/2constructor-078.adoc[ByteOutStream](
    int versionSelector,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslx/ByteOutStream/2constructor-078.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/ByteOutStream/2constructor-00.adoc[ByteOutStream](
    int versionSelector,
    std::size&lowbar;t initialCapacity,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslx/ByteOutStream/2constructor-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *versionSelector*
| BDEX version selector (typically &quot;YYYYMMDD&quot;)
| *basicAllocator*
| memory allocator&semi; null uses the default
| *initialCapacity*
| initial buffer capacity, in bytes
|===


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