What does the STL method name "rdbuf" mean?

The user who asked the following question accepted the "read buffer" pretty quickly: What does rdstate and rdbuf mean?

I am still wondering what the "read buffer" means in the context of "std :: ostream" (cout). I did not find ANY STL documentation describing this function as "any read". Is this just an unnamed function? (... apparently, but maybe I'm missing something)

+5
source share
2 answers

I am still wondering what the "read buffer" means in the context of "std :: ostream" (cout).

"", " " " ", " ".

, Cfront, . . , Cfront 2.0, , , . . 2-5:

int    rdcount();
int    rdmode();
int    rdmax();
void   setmode(int);
void   setmax(int);

, "rd" "set", -, .

, rdbuf(basic_streambuf<C,T>*), streambuf, , setbuf, streambuf . rdbuf "setter" โ€‹โ€‹, "getter", STRSTREAM (3++) PDF-, :

class strstream : public strstreambase,  public iostream {
public:
                                 strstream();
                                 strstream(char*, int, int mode);
                 strstreambuf*   rdbuf() ;
                 char*           str();
};
+10

/ (rdbuf) & lt; ---- @Daniel Jour.

input_stream stream_buffer, string_buffer file_buffer.

:   basic_istream (std::basic_streambuf * sb); :

https://en.cppreference.com/w/cpp/io/basic_istream/basic_istream

  basic_streambuf . , , , namedpipe, mailslot, memory, graphycard-mem. , ?

, RD ( ) , , 99,999% .

0

Source: https://habr.com/ru/post/1608884/


All Articles