Mono Class Library: Overview

System.IO.MemoryStream: Method Members

The methods of System.IO.MemoryStream are listed below. For a list of all members, see the MemoryStream Members list.

See Also: Inherited members from System.IO.Stream

Public Methods

override
Close()
Closes the current System.IO.MemoryStream instance.
override
Flush()
Overrides Stream.Flush so that no action is performed.
GetBuffer() : byte[]
Returns the array of unsigned bytes from which this stream was created.
override
Read(byte[], int, int) : int
Reads a block of bytes from the current stream at the current position, and writes the data to the specified byte array.
override
ReadByte() : int
Reads a byte from the current stream at the current position.
override
Seek(long, SeekOrigin) : long
Changes the position within the current stream by the given offset, which is relative to the stated origin.
override
SetLength(long)
Sets the length of the current stream to the specified value.
ToArray() : byte[]
Writes the entire stream contents to a byte array, regardless of the current position within the stream.
override
Write(byte[], int, int)
Writes a block of bytes to the current stream at the current position using data read from buffer.
override
WriteByte(byte)
Writes a byte to the current stream at the current position.
WriteTo(Stream)
Writes the entire contents of the current System.IO.MemoryStream instance to a specified stream.

Protected Methods

override
Dispose(bool)
Documentation for this section has not yet been entered.