MemoryStream Members
The following tables list the members exposed by the MemoryStream type.
Public Constructors
| Name | Description | |
|---|---|---|
![]() |
MemoryStream | Overloaded. Creates a instance of the MemoryStream class. |
Public Properties
| Name | Description | |
|---|---|---|
![]() |
CanRead | Gets a Boolean value indicating whether the current stream supports reading. |
![]() |
CanSeek | Gets a Boolean value indicating whether the current stream supports seeking. |
![]() |
CanTimeout | (Inherited from Stream.) |
![]() |
CanWrite | Gets a Boolean value indicating whether the current stream supports writing. |
![]() |
Capacity | Gets or sets the number of bytes allocated for this memory stream. |
![]() |
Length | Gets the length of the stream in bytes. |
![]() |
Position | Gets or sets the current position within the stream. |
Public Methods
| Name | Description | |
|---|---|---|
![]() |
Close | Closes a stream so that it cannot be written to or read from. |
![]() |
Dispose | (Inherited from Stream.) |
![]() |
Equals | (Inherited from Object.) |
![]() |
Flush | Flushes the contents of the stream. |
![]() |
GetBuffer | Retrieves the contents of the memory buffer associated with this stream. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Read | Reads a block of bytes from the stream and writes the data to buffer. |
![]() |
ReadByte | Reads a byte from the current stream. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
Seek | Sets the current position within the stream to the specified value. |
![]() |
SetLength | Sets the length, in bytes, of the current stream to the specified value. |
![]() |
ToArray | Writes the stream contents to a byte array, regardless of the value of the Position property. |
![]() |
ToString | (Inherited from Object.) |
![]() |
Write | Writes a block of bytes to the stream using data read from buffer. |
![]() |
WriteByte | Writes a byte to the current stream at the current position. |
![]() |
WriteTo | Writes the entire contents of the current memory stream to another stream. |
Protected Methods
| Name | Description | |
|---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
.gif)
.gif)
.gif)