[#BloombergLP-bdlbb-InBlobStreamBuf-seekpos]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/InBlobStreamBuf.adoc[InBlobStreamBuf]::seekpos
:relfileprefix: ../../../
:mrdocs:

Set the I&sol;O position for the specified open mode&period;

== Synopsis

Declared in `&lt;bdlbb&lowbar;blobstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
pos&lowbar;type
seekpos(
    pos&lowbar;type position,
    std::ios&lowbar;base::openmode which = bsl&colon;&colon;ios&lowbar;base&colon;&colon;in &verbar; bsl&colon;&colon;ios&lowbar;base&colon;&colon;out) override;
----

== Description

Set the location from which the next I&sol;O operation indicated by the optionally specified `which` mode will occur to the specified `position`&period; Return `position` on success, and `off&lowbar;type(&hyphen;1)` otherwise&period; Note that this method will fail if `bsl&colon;&colon;ios&lowbar;base&colon;&colon;out` is set&period;

== Return Value

`position` on success, and `off&lowbar;type(&hyphen;1)` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| absolute position to seek to
| *which*
| open mode indicating which position to set
|===


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