[#BloombergLP-bdlbb-BlobBuffer-setSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer]::setSize
:relfileprefix: ../../../
:mrdocs:

Set the size of this blob buffer to the specified `size`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setSize(int size);
----

== Description

The behavior is undefined unless `0 &lt;&equals; size` and the capacity of the buffer returned by the `buffer` method is at least `size` bytes&period;

== Parameters

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


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