[#BloombergLP-bdlsb-FixedMemOutput-pubseekpos]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemOutput.adoc[FixedMemOutput]::pubseekpos
:relfileprefix: ../../../
:mrdocs:

Set the position indicator to the specified `position` and return the resulting absolute position on success or pos&lowbar;type(&hyphen;1) on failure&period; Optionally specify `which` area of the stream buffer&period; The `seekpos` operation will fail if `which` does not include the flag `bsl&colon;&colon;ios&lowbar;base&colon;&colon;out` or if position is less then zero or greater than the value returned by `length`&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;fixedmemoutput&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlsb/FixedMemOutput/pos_type.adoc[pos&lowbar;type]
pubseekpos(
    xref:BloombergLP/bdlsb/FixedMemOutput/pos_type.adoc[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);
----


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