Set the I/O position for the specified open mode.
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;
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::out is set.
position on success, and off_type(-1) otherwise
| Name | Description |
|---|---|
| position | absolute position to seek to |
| which | open mode indicating which position to set |