This class implements the output functionality of the basic_streambuf protocol, using a client‐supplied bdlbb::Blob.

Synopsis

Declared in <bdlbb_blobstreambuf.h>

class OutBlobStreamBuf
    : public std::streambuf

Base Classes

Name

Description

std::streambuf

Member Functions

Name

Description

OutBlobStreamBuf [constructor]

Create an OutBlobStreamBuf using the specified blob.

~OutBlobStreamBuf [destructor] [virtual]

Destroy this stream buffer.

currentBufferIndex

Return the index of the current buffer. The behavior is undefined unless the "streamed" blob has at least one buffer.

data

Return the address of the blob held by this stream buffer.

data

Return the address of the blob held by this stream buffer.

previousBuffersLength

Return the length of buffers preceding the current one.

reset

Reset the put position of this stream buffer.

Protected Member Functions

Name

Description

overflow [virtual]

Append the optionally specified character c to this streambuf, and return c. By default, traits_type::eof() is appended.

pbackfail [virtual]

Return traits_type::eof() unconditionally.

seekoff [virtual]

Set the I/O position relative to a fixed position.

seekpos [virtual]

Set the I/O position for the specified open mode.

showmanyc [virtual]

Return 0 unconditionally.

sync [virtual]

Synchronize the put position in the blob of this stream buffer. Return 0 unconditionally.

underflow [virtual]

Return traits_type::eof() unconditionally.

xsgetn [virtual]

Return 0 unconditionally.

xsputn [virtual]

Copy characters from a buffer into this streambuf.

Created with MrDocs