std::basic_filebuf::sync
Da 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() |
||
Se existe uma área de colocar (por exemplo, o arquivo foi aberto para escrita), chama
overflow()
para escrever toda a produção pendente para o arquivo.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.
Se uma área get existe (por exemplo, o arquivo foi aberto para leitura), o efeito é definida pela implementação. Implementação típica podem esvaziar a área get e mover a posição atual do arquivo de volta pelo correspondente 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.
Índice |
[editar] Parâmetros
(Nenhum)
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 em caso de sucesso, -1 em caso de falha.
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()
ou seu equivalente é implicitamente chamado por close()
, seekoff()
, e seekpos()
e explicitamente chamado 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] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
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. (of std::basic_streambuf função pública membro)
| |
sincroniza um fluxo de saída com o arquivo 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. (função) |