MemoryStream Members
The following tables list the members exposed by the MemoryStream type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
MemoryStream | Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array. |
Public Properties
Name | Description | |
---|---|---|
![]() |
CanRead | Gets a value indicating whether the current stream supports reading. |
![]() |
CanSeek | Gets a value indicating whether the current stream supports seeking. |
![]() |
CanWrite | Gets a value indicating whether the current stream supports writing. |
![]() |
Length | Gets the length of the stream in bytes. |
![]() |
Position | Gets or sets the current position within the stream. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Dispose | Releases the unmanaged resources used by the MemoryStream class and optionally releases the managed resources. |
![]() |
Flush | Overrides Stream.Flush so that no action is performed. |
![]() |
Read | Reads a block of bytes from the current stream and writes the data to buffer. |
![]() |
ReadByte | Reads a byte from the current stream. |
![]() |
Seek | Sets the position within the current stream to the specified value. |
![]() |
SetLength | Sets the length of the current stream to the specified value. |
![]() |
ToArray | Writes the stream contents to a byte array, regardless of the Position property. |
![]() |
Write | Writes a block of bytes to the current stream using data read from buffer. |
![]() |
WriteByte | Writes a byte to the current stream at the current position. |
![]() |
WriteTo | Writes the entire contents of this memory stream to another stream. |