rdbuf

To retrieve a pointer to the streams buffer.

  strstreambuf* rdbuf() const;
  
Remarks

To manipulate a stream for random access or sychronization it is necessary to retrieve a pointer to the streams buffer. The function rdbuf() allows you to retrieve this pointer.

Returns a pointer to strstreambuf.

For an example of ostrstream rdbuf() usage refer to streambuf::pubseekoff()