BloombergLP::bdlbb::InBlobStreamBuf

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

Synopsis

Declared in <bdlbb_blobstreambuf.h>

class InBlobStreamBuf
    : public std::streambuf

Base Classes

NameDescription
std::streambuf

Member Functions

NameDescription
InBlobStreamBuf [constructor]Create an InBlobStreamBuf using the specified blob.
~InBlobStreamBuf [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.
previousBuffersLength Return the length of buffers preceding the current one.
reset Reset the get areas of this stream buffer.

Protected Member Functions

NameDescription
overflow [virtual]Return traits_type::eof() unconditionally.
pbackfail [virtual]Put back a character into the get area of this streambuf.
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 the number of characters currently available for reading from this stream buffer, or 0 if there are none.
sync [virtual]Return 0 unconditionally.
underflow [virtual]Adjust the underlying blob so that the next read position is valid. Return the character at gptr() on success and traits_type::eof() otherwise.
xsgetn [virtual]Read the specified numChars to the specified destination. Return the number of characters successfully read. The behavior is undefined unless 0 <= numChars.
xsputn [virtual]Return 0 unconditionally.