BloombergLP::bslx::TestInStream::seek

Set the extraction cursor to the specified offset.

Synopsis

Declared in <bslx_testinstream.h>

void
seek(std::size_t offset);

Description

Set the index of the next byte to be extracted from this stream to the specified offset from the beginning of the stream, and validate this stream if it is currently invalid. The behavior is undefined unless offset <= length().

Parameters

NameDescription
offsetbyte offset from the beginning of the stream