std::basic_filebuf::sync
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
protected: virtual int sync() |
||
Si un área de poner existe (por ejemplo, el archivo fue abierto para escritura), llama
overflow() para escribir toda la salida pendiente en el archivo .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 un área get existe (por ejemplo, el archivo fue abierto para lectura), el efecto es definido por la implantación. Implementación típica puede vaciar el área get y mover la posición actual del fichero de nuevo por el correspondiente número de bytes .
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.
Parámetros
(Ninguno)
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.
Valor de retorno
0 en caso de éxito, -1 en caso de fallo .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.
Notas
sync() o su equivalente se llama implícitamente por close(), seekoff() y seekpos() y explícitamente convocada por 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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |
Ver también
Invoca a sync(). (función miembro pública de std::basic_streambuf<CharT,Traits>)
| |
sincroniza un flujo de salida con el archivo real 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. (función) |