Constructs and initializes a new instance of the System.IO.MemoryStream class.
[Edit]
public MemoryStream (byte[] buffer, int index, int count, bool writable, bool publiclyVisible) |
|
Parameters
- buffer
- The byte array from which to create the new stream.
[Edit]
- index
- A int that specifies the index into buffer at which the stream begins.
[Edit]
- count
- A int that specifies the length of the stream in bytes.
[Edit]
- writable
- A bool that specifies whether the new stream instance supports writing.
[Edit]
- publiclyVisible
- A bool that specifies whether buffer is exposed via MemoryStream.GetBuffer, which returns the byte array from which the stream was created. Specify true to expose buffer; otherwise, specify false.
[Edit]
Exceptions
Remarks
Requirements
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0