std::basic_streambuf::in_avail
Da cppreference.com.
< cpp | io | basic streambuf
![]() | 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. |
std::streamsize in_avail(); | ||
Restituisce il numero di caratteri disponibili nella zona get. Se una posizione di lettura è disponibile, restituisce efficacemente egptr()- gptr(), la dimensione dell'area di get. In questo caso, il numero di byte restituito è il numero di byte che possono essere estratti dal buffer senza chiamare
underflow()
.Original:
Returns the number of characters available in the get area. If a read position is available, effectively returns egptr()- gptr(), the size of the get area. In this case, the number of bytes returned is the number of bytes that can be extracted from the buffer without calling
underflow()
.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 l'area get è vuota, chiama
showmanyc()
per determinare il numero di byte disponibili nella sequenza di caratteri associata. In questo caso, il valore restituito è il numero di byte che possono essere estratti dal buffer mentre è garantito che non sarebbe underflow()
Traits::eof
tornare.Original:
If the get area is empty, calls
showmanyc()
to determine the number of bytes available in the associated character sequence. In this case, the value returned is the number of bytes that can be extracted from the buffer while it's guaranteed that underflow()
would not return Traits::eof
.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
Il numero di caratteri disponibili nella zona get o nella sequenza di caratteri associati, o se non -1 caratteri sono disponibili nella sequenza associata.
Original:
The number of characters available in the get area or in the associated character sequence, or -1 if no characters are available in the associated sequence.
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] | fornisce facoltativamente il numero di caratteri disponibili per l'input dal file Original: optionally provides the number of characters available for input from the file 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_filebuf membro) |
estrae blocchi già disponibili di caratteri Original: extracts already available blocks of characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |