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

Name

Description

stream

input stream

dest

destination blob

numBytes

number of bytes to read

Created with MrDocs