[#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&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;utf8checkinginstreambufwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
pos&lowbar;type
seekpos(
    pos&lowbar;type offset,
    std::ios&lowbar;base::openmode mode) override;
----

== Description

Set the position of this object to the specified absolute `offset`&period; If a seek on the held `streambuf` occurs, the specified `mode` is passed to it&period; This function delegates to `seekoff(offset, bsl&colon;&colon;ios&lowbar;base&colon;&colon;beg, mode)`, see that function for further detail&period; The behavior is undefined unless `bsl&colon;&colon;ios&lowbar;base&colon;&colon;in` is set in `mode`&period; Note that this function is forwarded to by the public method `pubseekpos` in the base class&period;

== 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]#
