Simple in‐core representation of a shared buffer.

Synopsis

Declared in <bdlbb_blob.h>

class BlobBuffer;

Description

BlobBuffer is a simple in‐core representation of a shared buffer. This class is exception‐neutral with no guarantee of rollback: if an exception is thrown during the invocation of a method on a pre‐existing instance, the container is left in a valid state, but its value is undefined. In no event is memory leaked.

Member Functions

Name

Description

BlobBuffer [constructor]

Constructors

~BlobBuffer [destructor]

Destroy this blob buffer.

operator=

Assignment operators

buffer

buffer overloads

data

Return the address of the modifiable buffer represented by this object.

print

Format this object as a hexadecimal dump on the specified stream.

reset

reset overloads

setSize

Set the size of this blob buffer to the specified size.

size

Return the size of the buffer represented by this object.

swap

Efficiently exchange the value of this object with that of other.

trim

Reduce this buffer to the specified toSize and return the leftover.

Friends

Name

Description

BloombergLP::bdlbb::operator!=

Return true if the specified lhs and rhs do not have the same value.

BloombergLP::bdlbb::operator==

Return true if the specified lhs and rhs have the same value.

Non-Member Functions

Name

Description

swap

Efficiently exchange the values of the specified a and b objects.

Created with MrDocs