Compartir a través de


basic_streambuf::pubseekoff

Calls seekoff, a protected virtual function that is overridden in a derived class.

pos_type pubseekoff(
   off_type _Off,
   ios_base::seekdir _Way,
   ios_base::openmode _Which = ios_base::in | ios_base::out
);

Parameters

  • _Off
    The position to seek for relative to _Way.

  • _Way
    The starting point for offset operations. See seekdir for possible values.

  • _Which
    Specifies the mode for the pointer position. The default is to allow you to modify the read and write positions.

Return Value

Returns the new position or an invalid stream position ( seekoff(_Off, _Way, _Which) ).

Remarks

Moves the pointer relative to _Way.

Requirements

Header: <streambuf>

Namespace: std

See Also

Concepts

basic_streambuf Class

basic_streambuf Members

iostream Programming

iostreams Conventions