The CMemStream implementation of IStream using a byte array. This class supports a subset of IStream methods required by COM to persist objects and data. It should be used for intermediate storage to reduce the number of reads and writes to the main IStream during persistence.
For a description of IStream methods and parameters, see the COM Programmer's Reference. You could use the CopyTo method to write CMemStream data to any stream.