BloombergLP::bdlbb::Blob::trimLastDataBuffer

Set the size of the last data buffer to lastDataBufferLength(). If there are no data buffers, or if the last data buffer is full (i.e., its size is lastDataBufferLength()), then this method has no effect. Return the leftover of the trimmed buffer or default constructed BlobBuffer if nothing to trim. Note that the length of the blob is unchanged, and that capacity buffers (i.e., of indices numDataBuffers() and higher) are not removed.

Synopsis

Declared in <bdlbb_blob.h>

BlobBuffer
trimLastDataBuffer();