[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-seekoff] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::seekoff :relfileprefix: ../../../ :mrdocs: Set the put position relative to the specified base and return it. == Synopsis Declared in `<bdlsb_overflowmemoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual pos_type seekoff( off_type offset, std::ios_base::seekdir way, std::ios_base::openmode which = bsl::ios_base::in | bsl::ios_base::out) override; ---- == Description Set the position indicator to the relative specified `offset` from the base position indicated by the specified `way` 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 negative. == Return Value resulting absolute position, or `pos_type(‐1)` on failure == Parameters [cols="1,4"] |=== | Name| Description | *offset* | relative offset from the base position | *way* | base position for the seek (`beg`, `cur`, or `end`) | *which* | area of the stream buffer to seek (must include `out`) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#