Mono Class Library: Overview

System.IO.MemoryStream: Members

The members of System.IO.MemoryStream are listed below.

See Also: Inherited members from System.IO.Stream

Public Constructors

Constructs and initializes a new resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new non-resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new non-resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new non-resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new non-resizable instance of the System.IO.MemoryStream class.
Constructs and initializes a new instance of the System.IO.MemoryStream class.

Public Properties

[read-only]
override
CanReadbool. Gets a bool value indicating whether the current stream supports reading.
[read-only]
override
CanSeekbool. Gets a bool value indicating whether the current stream supports seeking.
[read-only]
override
CanWritebool. Gets a bool value indicating whether the current stream supports writing.
Capacityint. Gets or sets the number of bytes allocated for the current stream.
[read-only]
override
Lengthlong. Gets the length of the stream in bytes.
override
Positionlong. Gets or sets the current position within the 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.