Set the length of this blob to the specified length.
Declared in <bdlbb_blob.h>
void
setLength(int length);
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.
| Name | Description |
|---|---|
| length | new logical length of this blob, in bytes |