Files
2025-10-25 03:02:53 +03:00

2.3 KiB
Raw Permalink Blame History

[streambuf.pub.get]

31 Input/output library [input.output]

31.6 Stream buffers [stream.buffers]

31.6.3 Class template basic_streambuf [streambuf]

31.6.3.3 Public member functions [streambuf.members]

31.6.3.3.3 Get area [streambuf.pub.get]

🔗

streamsize in_avail();

1

#

Returns: If a read position is available, returnsegptr() - gptr().

Otherwise returnsshowmanyc().

🔗

int_type snextc();

2

#

Effects: Callssbumpc().

3

#

Returns: If that function returnstraits::eof(), returnstraits::eof().

Otherwise, returnssgetc().

🔗

int_type sbumpc();

4

#

Effects: If the input sequence read position is not available, returnsuflow().

Otherwise, returnstraits::to_int_type(*gptr()) and increments the next pointer for the input sequence.

🔗

int_type sgetc();

5

#

Returns: If the input sequence read position is not available, returnsunderflow().

Otherwise, returnstraits::to_int_type(*gptr()).

🔗

streamsize sgetn(char_type* s, streamsize n);

6

#

Returns: xsgetn(s, n).