◐ Shell
clean mode source ↗

std::basic_streambuf::sgetn, std::basic_streambuf::xsgetn – cppreference.com

Aus cppreference.com

<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)

Ruft xsgetn(s, count) der am meisten abgeleiteten Klasse .

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.

2)

Liest count Zeichen aus der Eingabesequenz und speichert sie in einem Zeichen-Array, auf die s. Die Charaktere sind wie durch wiederholte Aufrufe sbumpc() lesen. Das heißt, wenn weniger als count Zeichen unmittelbar verfügbar sind, ruft die Funktion uflow() mehr bereitzustellen, bis traits::eof() zurückgegeben .

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.

Parameter

(None)

Original:

(none)

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

Rückgabewert

Die Anzahl der Zeichen erfolgreich gelesen .

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.

Beispiel

Siehe auch

Beruft 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.


(öffentliche Elementfunktion) [edit]