Standard C++ Library Reference ISO/IEC (VERSION3)
The member function returns seekoff(off, way, which).
basic_streambuf::pubseekpos
pos_type pubseekpos(pos_type sp,
ios_base::openmode which =
ios_base::in | ios_base::out);
The member function returns seekpos(sp, which).
basic_streambuf::pubsetbuf
basic_streambuf *pubsetbuf(char_type *buffer, streamsize count);
The member function returns setbuf(buffer, count).
basic_streambuf::pubsync
int pubsync();
The member function returns sync().
basic_streambuf::sbumpc
int_type sbumpc();
If a read position is available, the member function returns
traits_type::to_int_type( *gptr()) and increments the next pointer for the input
buffer. Otherwise, it returns uflow().
basic_streambuf::seekoff
virtual pos_type seekoff(off_type off,
ios_base::seekdir way,
ios_base::openmode which =
ios_base::in | ios_base::out);
The protected virtual member function endeavors to alter the current positions for the controlled
streams. The new position is determined as follows:
If way == ios_base::beg, the new position is the beginning of the stream plus
off.
●
If way == ios_base::cur, the new position is the current stream position plus
off.
●
If way == ios_base::end, the new position is the end of the stream plus off.●