Espaces de noms
Variantes
Affichages
Actions

std::basic_filebuf::seekpos

De cppreference.com
< cpp‎ | io‎ | basic filebuf

 
 
D'entrée / sortie de bibliothèque
I / O manipulateurs
C-style I / O
Tampons
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf (obsolète)
Cours d'eau
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstractions
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
Fichier E / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
Chaîne I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Tableau I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream (obsolète)
ostrstream (obsolète)
strstream (obsolète)
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Interface catégorie d'erreur
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category (C++11)
io_errc (C++11)
 
std::basic_filebuf
Fonctions membres publiques
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::basic_filebuf
basic_filebuf::~basic_filebuf
basic_filebuf::operator= (C++11)
basic_filebuf::swap (C++11)
basic_filebuf::is_open
basic_filebuf::open
basic_filebuf::close
Protégé fonctions membres
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::showmanyc
basic_filebuf::underflow
basic_filebuf::uflow
basic_filebuf::pbackfail
basic_filebuf::overflow
basic_filebuf::setbuf
basic_filebuf::seekoff
basic_filebuf::seekpos
basic_filebuf::sync
basic_filebuf::imbue
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_filebuf) (C++11)
 
protected:

virtual pos_type seekpos( pos_type sp,

                          std::ios_base::openmode which = std::ios_base::in | std::ios_base::out );
Repositionne le pointeur de fichier, si possible, à la position indiquée par sp .
Original:
Repositions the file pointer, if possible, to the position indicated by sp.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si le fichier associé n'est pas ouvert (is_open()==false), ne parvient pas immédiatement .
Original:
If the associated file is not open (is_open()==false), fails immediately.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si le fichier est ouvert en écriture, écrit d'abord la zone de mise et toutes les séquences unshift requis par la locale courante imprégnée, en utilisant overflow()
Original:
If the file is open for writing, first writes the put area and any unshift sequences required by the currently imbued locale, using overflow()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Puis repositionne le pointeur de fichier, comme en appelant std::fseek
Original:
Then repositions the file pointer, as by calling std::fseek
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si le fichier est ouvert en lecture, met à jour la zone obtenir si nécessaire .
Original:
If the file is open for reading, updates the get area if necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si sp n'a pas été obtenu par seekoff() appel ou seekpos() sur le même fichier, le comportement est indéfini .
Original:
If sp was not obtained by calling seekoff() or seekpos() on the same file, the behavior is undefined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Paramètres

sp -
position dans le fichier obtenu par seekoff() ou seekpos() appelé plus tôt sur le même fichier
Original:
file position obtained by seekoff() or seekpos() called earlier on the same file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
which -
qui définit de l'entrée et / ou de séquences de sortie à affecter. Il peut y avoir un ou une combinaison des constantes suivantes:
Constante
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
in
affecter la séquence d'entrée
Original:
affect the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
out
affecter la séquence de sortie
Original:
affect the output sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Original:
defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:
Constante
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
in
affecter la séquence d'entrée
Original:
affect the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
out
affecter la séquence de sortie
Original:
affect the output sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

sp en cas de succès ou d'échec .. pos_type(off_type(-1)) sur
Original:
sp on success or pos_type(off_type(-1)) on failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Notes

seekpos() est appelé par std::basic_streambuf::pubseekpos, qui est appelé par les versions mono-arguments de std::basic_istream::seekg et std::basic_ostream::seekp
Original:
seekpos() is called by std::basic_streambuf::pubseekpos, which is called by the single-argument versions of std::basic_istream::seekg and std::basic_ostream::seekp
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exemple

[modifier] Voir aussi

Invoque seekpos()
Original:
invokes seekpos()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique de std::basic_streambuf) [edit]
[
virtuel
Original:
virtual
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
repositionne la position du fichier, en utilisant un adressage relatif
Original:
repositions the file position, using relative addressing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre virtuelle protégée) [edit]
déplace l'indicateur de position de fichier à un emplacement spécifique dans un fichier
Original:
moves the file position indicator to a specific location in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]