reset overloads

Synopses

Declared in <bslx_byteinstream.h>

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

void
reset();

Reset this stream to extract from the specified srcData.

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

Reset this stream to extract from the specified buffer.

void
reset(
    char const* buffer,
    std::size_t numBytes);

Parameters

Name

Description

srcData

string reference providing the new stream contents

buffer

memory buffer providing the new stream contents

numBytes

number of bytes from buffer to use

Created with MrDocs