Set the I/O position for the specified open mode.

Synopsis

Declared in <bdlbb_blobstreambuf.h>

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

Description

Set the location from which the next I/O operation indicated by the optionally specified which mode will occur to the specified position. Return position on success, and off_type(‐1) otherwise. Note that this method will fail if bsl::ios_base::in is set.

Return Value

position on success, and off_type(‐1) otherwise

Parameters

Name

Description

position

absolute position to seek to

which

open mode indicating which position to set

Created with MrDocs