[#BloombergLP-bdlde-Utf8CheckingInStreamBufWrapper-seekpos] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8CheckingInStreamBufWrapper.adoc[Utf8CheckingInStreamBufWrapper]::seekpos :relfileprefix: ../../../ :mrdocs: Set the position of this object to the specified absolute offset. == Synopsis Declared in `<bdlde_utf8checkinginstreambufwrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *offset* | absolute position to seek to | *mode* | open mode propagated to a seek on the held streambuf |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#