Set the length of this blob to the specified length.

Synopsis

Declared in <bdlbb_blob.h>

void
setLength(int length);

Description

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.

Parameters

Name

Description

length

new logical length of this blob, in bytes

Created with MrDocs