Set the put position relative to a fixed base position.
Declared in <bdlsb_fixedmemoutstreambuf.h>
virtual
pos_type
seekoff(
off_type offset,
std::ios_base::seekdir fixedPosition,
std::ios_base::openmode which = bsl::ios_base::out) override;
Set the position indicator to the relative specified offset from the base position indicated by the specified fixedPosition 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::out or if the resulting absolute position is less than zero or greater than the value returned by length.
resulting absolute position, or pos_type(-1) on failure
| Name | Description |
|---|---|
| offset | relative distance to move the position indicator |
| fixedPosition | base position from which offset is applied |
| which | area of the stream buffer; must include out |