Share via


streambuf::seekpos Method

Seeks to the given position.

virtual typename details::basic_streambuf<_CharType>::pos_type seekpos(
   typename details::basic_streambuf<_CharType>::pos_type pos,
   std::ios_base::openmode direction
);

Parameters

  • pos
    The offset from the beginning of the stream.

  • direction
    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 direction parameter defines whether to move the read or the write cursor.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class