std::basic_filebuf::sync - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
|
|
||
Se una zona di messa esiste (ad esempio, il file è stato aperto per la scrittura), le chiamate overflow() di scrivere tutto l'output in attesa del file.
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.
Se un'area get esiste (ad esempio, il file è stato aperto per la lettura), l'effetto è definito dall'implementazione. Tipica applicazione può svuotare l'area get e spostare la posizione corrente nel file indietro di un corrispondente numero di byte.
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.
Parametri
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Valore di ritorno
0 in caso di successo, -1 in caso di guasto.
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.
Note
sync() o il suo equivalente è implicitamente chiamato da close(), seekoff() e seekpos() ed esplicitamente chiamato da std::basic_streambuf::pubsync
Original:
sync() or its equivalent is implicitly called by close(), seekoff(), and seekpos() and explicitly called by std::basic_streambuf::pubsync
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Vedi anche
Invoca Original: invokes The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
sincronizza un flusso di output con il file vero e proprio Original: synchronizes an output stream with the actual file The text has been machine-translated via Google Translate. (funzione) [modifica] | |