BloombergLP::bdlsb::MemOutStreamBuf

This class implements the output functionality of the basic_streambuf protocol, using a user-supplied or default bslma allocator to supply memory.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

class MemOutStreamBuf
    : public std::streambuf

Base Classes

NameDescription
std::streambuf

Member Functions

NameDescription
MemOutStreamBuf [constructor]Create an empty stream buffer.
MemOutStreamBuf [constructor]Create an empty stream buffer with the specified initial capacity.
~MemOutStreamBuf [destructor] [virtual]Destroy this stream buffer.
capacity Return the current capacity of the buffer managed by this stream buffer.
data Return the address of the non-modifiable character buffer managed by this stream buffer.
length Return the number of valid characters in this stream buffer.
reserveCapacity Reserve capacity for at least the specified number of characters.
reset Reset this stream buffer to its default-constructed empty state.
operator BloombergLP::bslmf::NestedTraitDeclaration<MemOutStreamBuf, UsesBslmaAllocator> Declare MemOutStreamBuf as using a bslma allocator.

Protected Member Functions

NameDescription
overflow [virtual]Append a character to this stream buffer, growing as needed.
seekoff [virtual]Set the put position relative to the specified base and return it.
seekpos [virtual]Set the put position to the specified absolute position and return it.
xsputn [virtual]Write characters from a buffer into this stream buffer.