BloombergLP::bslx::ByteOutStream::ByteOutStream

Constructors

Synopses

Declared in <bslx_byteoutstream.h>

Create an empty output byte stream using the specified versionSelector.

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

Create an empty output byte stream with the specified initial capacity.

ByteOutStream(
    int versionSelector,
    std::size_t initialCapacity,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
versionSelectorBDEX version selector (typically "YYYYMMDD")
basicAllocatormemory allocator; null uses the default
initialCapacityinitial buffer capacity, in bytes