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

Create an output byte stream that writes to the specified `streamBuf`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
GenericOutStream(
    STREAMBUF* streamBuf,
    int versionSelector);
----

== Description

Create an output byte stream that writes its output to the specified `streamBuf` and uses the specified (_compile_&hyphen;time&hyphen;defined) `versionSelector` as needed (see &lcub;Versioning&rcub;)&period; Note that the `versionSelector` is expected to be formatted as &quot;YYYYMMDD&quot;, a date representation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| stream buffer to write to
| *versionSelector*
| BDEX version selector (typically &quot;YYYYMMDD&quot;)
|===


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