Multiple character extraction.
Synopsis
Declared in <bslstl_syncbuf.h>
virtual
streamsize
xsgetn(
char_type* __s,
streamsize __n);
Description
Fills __s[0] through __s[] with characters from the input sequence, as if by sbumpc(). Stops when either __n characters have been copied, or when traits::eof() would be copied.
It is expected that derived classes provide a more efficient implementation by overriding this definition.
Return Value
The number of characters assigned.
Parameters
Name |
Description |
__s |
A buffer area. |
__n |
Maximum number of characters to assign. |
Created with MrDocs