MemoryStream Constructor (Int32)
Initializes a new instance of the MemoryStream class with an expandable capacity initialized as specified.
Assembly: mscorlib (in mscorlib.dll)
The capacity automatically increases when you use the SetLength method to set the length to a value larger than the capacity of the current stream. Except for a MemoryStream constructed with a byte parameter, write operations at the end of a MemoryStream expand the MemoryStream.
This constructor exposes the underlying stream that GetBuffer returns.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0, 2.0, 1.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8