[#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 `<bslx_byteoutstream.h>` Create an empty output byte stream that will use the specified (_compile_‐time‐defined) `versionSelector` as needed (see {Versioning}). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. Note that the `versionSelector` is expected to be formatted as "YYYYMMDD", a date representation. [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..._]# Create an empty output byte stream having an initial buffer capacity of at least the specified `initialCapacity` (in bytes) and that will use the specified (_compile_‐time‐defined) `versionSelector` as needed (see {Versioning}). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. Note that the `versionSelector` is expected to be formatted as "YYYYMMDD", a date representation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/ByteOutStream/2constructor-00.adoc[ByteOutStream]( int versionSelector, std::size_t initialCapacity, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bslx/ByteOutStream/2constructor-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#