Memory Stream
Initializes a new instance of the MemoryStream class with an expandable capacity initialized to zero.
Initializes a new instance of the MemoryStream class with an expandable capacity initialized as specified.
Parameters
The initial size of the internal array in bytes.
Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array.
Parameters
The array of unsigned bytes from which to create the current stream.
Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array, with writable set as specified.
Parameters
The array of unsigned bytes from which to create this stream.
True if the stream supports writing, false otherwise.
Initializes a new non-resizable instance of the MemoryStream class based on the specified region of a byte array.
Parameters
The array of unsigned bytes from which to create this stream.
The index into buffer at which the stream begins.
The length of the stream in bytes.
Initializes a new non-resizable instance of the MemoryStream class based on the specified region of a byte array, with writable set as specified.
Parameters
The array of unsigned bytes from which to create this stream.
The index into buffer at which the stream begins.
The length of the stream in bytes.
True if the stream supports writing, false otherwise.
Initializes a new instance of the MemoryStream class based on the specified region of a byte array, with writable set as specified, and publiclyVisible set as specified.
Parameters
The array of unsigned bytes from which to create this stream.
The index into buffer at which the stream begins.
The length of the stream in bytes.
Whether the stream supports writing.
Whether the stream allows direct access to the underlying buffer.