Read characters from this buffer into the specified destination.
Declared in <bdlsb_fixedmeminput.h>
std::streamsize
sgetn(
char_type* destination,
std::streamsize length);
Read the specified length characters to the specified destination. Return the number of characters successfully read from this buffer, which is either equal to the length parameter or equal to the distance from the current read position to the end of the input buffer, whichever is smaller, and move the read cursor position by this amount. The behavior is undefined unless '0 <= length'.
number of characters successfully read
| Name | Description |
|---|---|
| destination | buffer that receives the characters read |
| length | maximum number of characters to read |