BloombergLP::bslx::ByteOutStream::ByteOutStream

Create an empty output byte stream using the specified versionSelector.

Synopsis

Declared in <bslx_byteoutstream.h>

explicit
ByteOutStream(
    int versionSelector,
    bslma::Allocator* basicAllocator = 0);

Description

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.

Parameters

NameDescription
versionSelectorBDEX version selector (typically "YYYYMMDD")
basicAllocatormemory allocator; null uses the default