std::basic_filebuf::sync
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 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.
Contenido |
[editar] 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.
[editar] 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.
[editar] 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.
[editar] Ejemplo
| This section is incomplete Reason: no example |
[editar] Ver también
| Invoca 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. (miembro público of std::basic_streambuf función)
| |
| 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) |

