Bagikan melalui


streambuf::seekoff Method

Seeks to a position given by a relative offset.

virtual typename details::basic_streambuf<_CharType>::pos_type seekoff(
   typename details::basic_streambuf<_CharType>::off_type offset,
   std::ios_base::seekdir way,
   std::ios_base::openmode mode
);

Parameters

  • offset
    The relative position to seek to

  • way
    The starting point (beginning, end, current) for the seek.

  • mode
    The I/O direction to seek (see remarks)

Return Value

The position. EOF if the operation fails.

Remarks

Some streams may have separate write and read cursors. For such streams, the mode parameter defines whether to move the read or the write cursor.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class