Set the position of this object to the specified absolute offset.
Synopsis
Declared in <bdlde_utf8checkinginstreambufwrapper.h>
virtual
pos_type
seekpos(
pos_type offset,
std::ios_base::openmode mode) override;
Description
Set the position of this object to the specified absolute offset. If a seek on the held streambuf occurs, the specified mode is passed to it. This function delegates to seekoff(offset, bsl::ios_base::beg, mode), see that function for further detail. The behavior is undefined unless bsl::ios_base::in is set in mode. Note that this function is forwarded to by the public method pubseekpos in the base class.
Return Value
the resulting stream position on success, or a negative position if the seek fails
Parameters
Name |
Description |
offset |
absolute position to seek to |
mode |
open mode propagated to a seek on the held streambuf |
Created with MrDocs