Namespaces
Variants
Views
Actions

std::basic_streambuf::sgetn, std::basic_streambuf::xsgetn

From cppreference.com
< cpp‎ | io‎ | basic streambuf
Revision as of 20:00, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
std::streamsize sgetn( char_type* s, std::streamsize count );
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
protected:
virtual std::streamsize xsgetn( char_type* s, std::streamsize count );
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

1) Calls xsgetn(s, count) of the most derived class.

2) 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 Template:rlpf. That is, if less than count characters are immediately available, the function calls Template:rlpf to provide more until traits::eof() is returned.

Contents

Parameters

(none)

Return value

The number of characters successfully read.

Example

See also

Template:cpp/io/basic streambuf/dcl list sputn