std::basic_filebuf::sync
De cppreference.com
[] |
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. |
<metanoindex/>
<tbody> </tbody> protected: virtual int sync() |
||
Si une zone de mise existant (par exemple, le fichier a t ouvert en criture), appelle
overflow() d'crire toutes les sorties en attente dans le fichier .Original:
If a put area exists (e.g. the file was opened for writing), calls
overflow() to write all pending output to the file.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 une zone get existe (par exemple, le fichier a t ouvert en lecture), l'effet est dfini par l'implmentation. Mise en uvre typique peut vider la zone get et dplacer la position courante du fichier en arrire par le nombre correspondant d'octets .
Original:
If a get area exists (e.g. the file was opened for reading), the effect is implementation-defined. Typical implementation may empty out the get area and move the current file position back by the corresponding number of bytes.
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.
Paramtres
(Aucun)
Original:
(none)
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.
Retourne la valeur
0 en cas de succs, -1 en cas d'chec .Original:
0 in case of success, -1 in case of 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.
Notes
sync() ou son quivalent est appel implicitement par close(), seekoff() et seekpos() et explicitement appel par std::basic_streambuf::pubsyncOriginal:
sync() or its equivalent is implicitly called by close(), seekoff(), and seekpos() and explicitly called by std::basic_streambuf::pubsyncThe 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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
Invoque sync()Original: invokes sync()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)
| |
synchronise un flux de sortie avec le fichier rel Original: synchronizes an output stream with the actual file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |