Files
cppdraft_translate/cppdraft/streambuf/buffer.md
2025-10-25 03:02:53 +03:00

1.6 KiB

[streambuf.buffer]

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.2 Buffer management and positioning [streambuf.buffer]

🔗

basic_streambuf* pubsetbuf(char_type* s, streamsize n);

1

#

Returns: setbuf(s, n).

🔗

pos_type pubseekoff(off_type off, ios_base::seekdir way, ios_base::openmode which = ios_base::in | ios_base::out);

2

#

Returns: seekoff(off, way, which).

🔗

pos_type pubseekpos(pos_type sp, ios_base::openmode which = ios_base::in | ios_base::out);

3

#

Returns: seekpos(sp, which).

🔗

int pubsync();

4

#

Returns: sync().