[#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`. The behavior is undefined unless `0 <= size` and the capacity of the buffer returned by the `buffer` method is at least `size` bytes. == Synopsis Declared in `<bdlbb_blob.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setSize(int size); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#