Read up to the specified numCharacters from this stringbuf object and store them in the specified result array. Return the number of characters loaded into result. Note that if fewer than numCharacters characters are available in the buffer, all available characters are loaded into result. The behavior is undefined unless result refers to a contiguous sequence of at least numCharacters characters.

Synopsis

Declared in <bslstl_stringbuf.h>

virtual
std::streamsize
xsgetn(
    char_type* result,
    std::streamsize numCharacters);

Created with MrDocs