BloombergLP::bdlbb::BlobUtil::read

Read bytes from a stream into a blob.

Synopsis

Declared in <bdlbb_blobutil.h>

template<class STREAM>
static
STREAM&
read(
    STREAM& stream,
    Blob* dest,
    int numBytes);

Description

Read the specified numBytes from the specified stream and load it into the specified dest, and return a reference to the modifiable stream.

Return Value

reference to the modifiable stream

Parameters

NameDescription
streaminput stream
destdestination blob
numBytesnumber of bytes to read