std::basic_filebuf::seekpos
De cppreference.com.
< cpp | io | basic filebuf
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| protected: virtual pos_type seekpos( pos_type sp, |
||
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.
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.
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.
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.
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.
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.
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:
Original: defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:
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)) surOriginal:
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.
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::seekpOriginal:
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::seekpThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Exemple
| This section is incomplete Reason: no example |
[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)
| |
| [ 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) |
| 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) | |