[#BloombergLP-bdlbb-Blob-setLength] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/Blob.adoc[Blob]::setLength :relfileprefix: ../../../ :mrdocs: Set the length of this blob to the specified `length` and, if `length` is greater than its total size, grow this blob by appending buffers allocated using this object's underlying `BlobBufferFactory`. The behavior is undefined if `length` is a negative value, or if the new length requires growing the blob and this blob has no underlying factory. == Synopsis Declared in `<bdlbb_blob.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLength(int length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#