GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::basic_streambuf::pubseekoff,(3) C++ Standard Libary std::basic_streambuf::pubseekoff,(3)

std::basic_streambuf::pubseekoff, - std::basic_streambuf::pubseekoff,


pos_type pubseekoff( off_type off, std::ios_base::seekdir dir, (1)
std::ios_base::openmode which = ios_base::in | ios_base::out );
protected:


virtual pos_type seekoff( off_type off, std::ios_base::seekdir dir, (2)


std::ios_base::openmode which = ios_base::in | ios_base::out );


Sets the position indicator of the input and/or output sequence relative to some
other position.


1) Calls seekoff(off, dir, which) of the most derived class


2) The base class version of this function has no effect. The derived classes may
override this function to allow relative positioning of the position indicator.


off - relative position to set the position indicator to.
defines base position to apply the relative offset to. It can be one of the
following constants:


dir - Constant Explanation
beg the beginning of a stream
end the ending of a stream
cur the current position of stream position indicator
defines which of the input and/or output sequences to affect. It can be one
or a combination of the following constants:
which -
Constant Explanation
in affect the input sequence
out affect the output sequence


Not all combinations of parameters may be valid, see the derived versions of seekoff
for details.


1) The return value of seekoff(off, dir, which)


2) The resulting absolute position as defined by the position indicator. The base
class version returns pos_type(off_type(-1)).


This section is incomplete
Reason: no example


pubseekpos invokes seekpos()
(public member function)
seekoff repositions the file position, using relative addressing
[virtual] (virtual protected member function of std::basic_filebuf<CharT,Traits>)
repositions the next pointer in the input sequence, output sequence, or
seekoff both, using relative addressing
[virtual] (virtual protected member function of
std::basic_stringbuf<CharT,Traits,Allocator>)
seekoff repositions the next pointer in the input sequence, output sequence, or
[virtual] both, using relative addressing
(virtual protected member function of std::strstreambuf)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.