VMS Help CXXL, iostream_package, strstreambuf *Conan The Librarian |
Objects of this class let you use an array of bytes (a string of characters) in memory as a streambuf for stream input/output operations on various kinds of data. Mapping between abstract get and put pointers and char* pointers is direct in the sense that a char* is interpreted as pointing immediately ahead of the char it points to. Moving the pointers corresponds to incrementing and decrementing the char* values. To accommodate the need for strings of arbitrary length, this class supports a dynamic mode. When a strstreambuf object is in dynamic mode, space for the character is allocated as needed. When the sequence is extended too far, it is copied to a new array. Header: #include <strstream.hxx>
|