Set the get‐area position indicator relative to a base position.

Synopsis

Declared in <bdlsb_fixedmeminstreambuf.h>

virtual
pos_type
seekoff(
    off_type offset,
    std::ios_base::seekdir way,
    std::ios_base::openmode which = bsl::ios_base::in) 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::in 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

Name

Description

offset

relative offset from the base position

way

base position from which offset is measured

which

area of the stream buffer to seek (defaults to input)

Created with MrDocs