Set the get‐area position indicator to an absolute position.

Synopsis

Declared in <bdlsb_fixedmeminstreambuf.h>

virtual
FixedMemInStreamBuf::pos_type
seekpos(
    pos_type position,
    std::ios_base::openmode which = bsl::ios_base::in) override;

Description

Set the position indicator to the specified position and return the resulting absolute position on success or pos_type(‐1) on failure. Optionally specify which area of the stream buffer. The seekpos operation will fail if which does not include the flag bsl::ios_base::in or if position is less then zero or greater than the value returned by length.

Return Value

resulting absolute position, or pos_type(‐1) on failure

Parameters

Name

Description

position

absolute position to seek to

which

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

Created with MrDocs