[#BloombergLP-bdls-FdStreamBuf-seekpos]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf.adoc[FdStreamBuf]::seekpos
:relfileprefix: ../../../
:mrdocs:

Seek to the specified `offset` relative to the beginning of the file&period; Return the resulting absolute position in the file relative to the beginning&period; Optionally specify `mode` which is ignored&period; Also note that seeks are always in terms of bytes on the device, meaning that on a Windows text file, seeking past a &grave;&bsol;r &grave; sequence on the disk will count as two bytes, though if it is read in it will be a single &grave; &grave; byte&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&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 = bsl&colon;&colon;ios&lowbar;base&colon;&colon;in &verbar; bsl&colon;&colon;ios&lowbar;base&colon;&colon;out) override;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
