◐ Shell
clean mode source ↗

std::basic_filebuf::underflow - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

protected: virtual int_type underflow()

Se comporta como o std::basic_streambuf::underflow classe base, exceto que a leitura dos dados da seqüência de caracteres associada (o arquivo) para a área de get, primeiro lê os bytes do arquivo em um buffer temporário (alocados tão grande quanto necessário), então usa de std::codecvt::in a região impregnada para converter a representação (tipicamente, de vários bytes) externa para a forma interna, que é então utilizado para preencher a área get. A conversão pode ser ignorado se a localidade de std::codecvt::always_noconv retornos true

Original:

Behaves like the base class std::basic_streambuf::underflow, except that to read the data from the associated character sequence (the file) into the get area, first reads the bytes from the file into a temporary buffer (allocated as large as necessary), then uses std::codecvt::in of the imbued locale to convert the external (typically, multibyte) representation to the internal form which is then used to populate the get area. The conversion may be skipped if the locale's std::codecvt::always_noconv returns true

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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.

Valor de retorno

Traits::to_int_type(*gptr()) (o primeiro caractere da seqüência pendente) em caso de sucesso, ou Traits::eof() em caso de falha.

Original:

Traits::to_int_type(*gptr()) (the first character of the pending sequence) in case of success, or Traits::eof() 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.

Exemplo

Veja também

[virtual]

lê caracteres da seqüência de entrada associado para a área get

Original:

reads characters from the associated input sequence to the get 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) [edit]

[virtual]

lê o arquivo associado e avanços o ponteiro próximo da região get

Original:

reads from the associated file and advances the next pointer in the get 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 função de membro) [edit]

[virtual]

escreve caracteres para o arquivo associado da área de venda

Original:

writes characters to the associated file 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 função de membro) [edit]