BloombergLP::bslx::ByteInStream::reset

Reset this stream to extract from the specified srcData.

Synopsis

Declared in <bslx_byteinstream.h>

void
reset(bslstl::StringRef const& srcData);

Description

Reset this stream to extract from the specified srcData, set the index of the next byte to be extracted to 0 (i.e., the beginning of the stream), and validate this stream if it is currently invalid.

Parameters

NameDescription
srcDatastring reference providing the new stream contents