std::basic_streambuf::sgetn, std::basic_streambuf::xsgetn
De cppreference.com
|
|
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. |
<metanoindex/>
<tbody> </tbody> std::streamsize sgetn( char_type* s, std::streamsize count ); |
(1) | |
protected: virtual std::streamsize xsgetn( char_type* s, std::streamsize count ); |
(2) | |
1)
Appels
xsgetn(s, count) de la classe la plus dérivée .Original:
Calls
xsgetn(s, count) of the most derived class.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.
2)
Lit
count caractères à partir de la séquence d'entrée et les stocke dans un tableau de caractères pointée par s. Les caractères sont lus comme par des appels répétés à sbumpc(). Autrement dit, si moins de caractères count sont immédiatement disponibles, la fonction appelle uflow() de fournir plus jusqu'à ce que traits::eof() est retourné .Original:
Reads
count characters from the input sequence and stores them into a character array pointed to by s. The characters are read as if by repeated calls to sbumpc(). That is, if less than count characters are immediately available, the function calls uflow() to provide more until traits::eof() is returned.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.
Paramètres
(Aucun)
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.
Retourne la valeur
Le nombre de caractères lus avec succès .
Original:
The number of characters successfully read.
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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
Invoque xsputn()Original: invokes xsputn()The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |