Sets the capacity of the stream to the requested size.
If the required size exceeds the current capacity of the buffer, a new buffer is aquired from the BufferProvider. The content of the current buffer is copied to the new buffer.
If the size of the old buffer exceeds the MinimumRequiredSize, it will be recycled by the BufferManager.
SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace