[#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&period;

== Synopsis

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

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

== Description

The behaviour is undefined unless &apos;0 &lt;&equals; toSize &amp;&amp; toSize &lt;&equals; size()&apos;&period;

== Return Value

a blob buffer representing the leftover portion

== Parameters

[cols="1,4"]
|===
| Name| Description
| *toSize*
| new size of this buffer, in bytes
|===


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