strstream();
strstream( char* pch, int nLength, int nMode );
Parameters
pch
A character array that is large enough to accommodate future output stream activity.
nLength
The size (in characters) of pch. If 0, pch is assumed to point to a null-terminated array; if less than 0, the array is assumed to have infinite length.
nMode
The stream creation mode, which must be one of the following enumerators as defined in class ios:
The use of the ios::in and ios::out flags is optional for this class; both input and output are implied.
Remarks
The first constructor makes an strstream object that uses an internal, dynamic buffer that is initially empty.
The second constructor makes an strstream object out of the first nLength characters of the psc buffer. The stream will not accept characters once the length reaches nLength.