[#BloombergLP-bdlbb-BlobBuffer-trim] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer]::trim :relfileprefix: ../../../ :mrdocs: Reduce this buffer to the specified `toSize` and return the leftover. The behaviour is undefined unless '0 <= toSize && toSize <= size()'. == Synopsis Declared in `<bdlbb_blob.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer] trim(int toSize); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#