BloombergLP::bdlbb::OutBlobStreamBuf::seekoff

Set the I/O position relative to a fixed position.

Synopsis

Declared in <bdlbb_blobstreambuf.h>

virtual
pos_type
seekoff(
    off_type offset,
    std::ios_base::seekdir fixedPosition,
    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 offset position from the location indicated by the specified fixedPosition. Return the new offset on success, and off_type(-1) otherwise. offset may be negative. Note that this method will fail if bsl::ios_base::in is set.

Return Value

new offset on success, and off_type(-1) otherwise

Parameters

NameDescription
offsetoffset from fixedPosition
fixedPositionbase position from which to seek
whichopen mode indicating which position to set