Memory Streams
The binary, narrow character, Unicode character, and wide character stream families include memory streams. You can use memory streams to avoid performance problems that occur when the internal buffer needs to be resized, which requires data to be copied. The memory streams use small linked buffers as internal storage.