Reset this stream to extract from the specified buffer.
Synopsis
Declared in <bslx_byteinstream.h>
void
reset(
char const* buffer,
std::size_t numBytes);
Description
Reset this stream to extract from the specified buffer containing the specified numBytes, 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. The behavior is undefined unless 0 == numBytes if 0 == buffer.
Parameters
Name |
Description |
buffer |
memory buffer providing the new stream contents |
numBytes |
number of bytes from |
Created with MrDocs