std::basic_filebuf::overflow
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_type overflow ( int_type c = Traits::eof() ); |
||
Se comporta como o std::basic_streambuf::overflow classe base, exceto que para escrever os dados da área para colocar a seqüência de caracteres associada (o arquivo), primeiro usa codecvt::out() do local imbuído para converter os caracteres em representação (possivelmente multibyte) externa, armazenada em um buffer temporário (alocados tão grande quanto necessário), em seguida, usa o arquivo I / O para copiar todos os bytes totalmente convertido para o arquivo.
Original:
Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses codecvt::out() of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into 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 a conversão falhar com std::codecvt_base::error, retorna Traits::eof() sem tentar qualquer saída.
Original:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
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 o arquivo associado não está aberto (is_open()==false, retorna Traits::eof() antes de fazer qualquer coisa.
Original:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
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
Traits::not_eof(c) para indicar sucesso ou Traits::eof() para indicar falha.
Original:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate 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] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
[virtual] |
escreve caracteres para a seqüência de saída associado da área de venda Original: writes characters to the associated output sequence from the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protegido of std::basic_streambuf função de membro)
|
[virtual] |
lê o arquivo associado Original: reads from the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protegido função de membro) |