[#BloombergLP-bdlsb-FixedMemOutput-pubseekoff] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemOutput.adoc[FixedMemOutput]::pubseekoff :relfileprefix: ../../../ :mrdocs: Set the position indicator relative to the specified `fixedPosition`. == Synopsis Declared in `<bdlsb_fixedmemoutput.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlsb/FixedMemOutput/pos_type.adoc[pos_type] pubseekoff( xref:BloombergLP/bdlsb/FixedMemOutput/off_type.adoc[off_type] offset, std::ios_base::seekdir fixedPosition, std::ios_base::openmode which = bsl::ios_base::in | bsl::ios_base::out); ---- == Description Set the position indicator to the relative specified `offset` from the base position indicated by the specified `fixedPosition` and return the resulting absolute position on success or pos_type(‐1) on failure. Optionally specify `which` area of the stream buffer. The seek operation will fail if `which` does not include the flag `bsl::ios_base::out` or if the resulting absolute position is less than zero or greater than the value returned by `length`. == Return Value resulting absolute position, or `pos_type(‐1)` on failure == Parameters [cols="1,4"] |=== | Name| Description | *offset* | signed displacement from `fixedPosition` | *fixedPosition* | base position (`beg`, `cur`, or `end`) | *which* | areas of the stream buffer; must include `out` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#