[#BloombergLP-bdlbb-Blob-trimLastDataBuffer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/Blob.adoc[Blob]::trimLastDataBuffer
:relfileprefix: ../../../
:mrdocs:

Trim the last data buffer down to `lastDataBufferLength()`&period;

== Synopsis

Declared in `&lt;bdlbb&lowbar;blob&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer]
trimLastDataBuffer();
----

== Description

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

== Return Value

the leftover of the trimmed buffer, or a default&hyphen;constructed `BlobBuffer` if nothing was trimmed


[.small]#Created with https://www.mrdocs.com[MrDocs]#
