The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class strstream
istream                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  Description
 
  The strstream class supports I/O streams that have character arrays as a
  source and destination. You can allocate a character array prior to
  construction, or the constructor can internally allocate a dynamic
  array. All the input and output stream operators and functions can then
  be used to fill the array.
 
  You must be aware that there is a put pointer and a get pointer working
  independently behind the scenes in the attached strstreambuf class. The
  put pointer advances as you insert fields into the stream's array, and
  the get pointer advances as you extract fields. The ostream::seekp
  function moves the put pointer, and the istream::seekg function moves
  the get pointer. If either pointer reaches the end of the string (and
  sets the ios::eof flag), then you must call clear before seeking.
 
  #include <strstrea.h>
 
  See Also
 
  strstreambuf, streambuf, istrstream, ostrstream
 
  Public Members
 
  Construction/Destruction
 
  strstream   Constructs a strstream object.
 
  ~strstream   Destroys a strstream object.
 
  Other Functions
 
  pcount   Returns the number of bytes that have been stored in the
             stream's buffer.
 
  rdbuf    Returns a pointer to the stream's associated strstreambuf
             object.
 
  str      Returns a pointer to the string stream's character buffer and
             freezes it.
 
 
                                     -♦-