std::basic_filebuf::underflow
Da cppreference.com.
< cpp | io | basic filebuf
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
protected: virtual int_type underflow() |
||
Si comporta come il std::basic_streambuf::underflow classe base, tranne che per leggere i dati dalla sequenza di caratteri associata (file) nell'area get, prima legge i byte dal file in un buffer temporaneo (allocato grande come necessario), quindi utilizza std::codecvt::in di il locale intriso di convertire l'esterno (tipicamente, multibyte) la rappresentanza per la forma interna che viene poi utilizzato per popolare l'area get. La conversione può essere saltato se le impostazioni internazionali di std::codecvt::always_noconv torna 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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica] Parametri
(Nessuno)
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.
[modifica] Valore di ritorno
Traits::to_int_type(*gptr()) (il primo carattere della sequenza attesa) in caso di successo, o Traits::eof() in caso di guasto.
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.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
[virtuale] |
legge caratteri dalla sequenza di input associato alla zona 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. (virtuale protetto funzione of std::basic_streambuf membro)
|
[virtuale] |
legge dal file associato e acconti il puntatore successivo nella zona 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. (virtuale protetto funzione membro) |
[virtuale] |
scrive i caratteri nel file associato dalla zona put 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. (virtuale protetto funzione membro) |