The members of System.IO.MemoryStream are listed below.
See Also: Inherited members from System.IO.Stream
Public Constructors
Public Properties
[read-only] override | CanRead | bool. Gets a bool value indicating whether the current stream supports reading. |
[read-only] override | CanSeek | bool. Gets a bool value indicating whether the current stream
supports seeking. |
[read-only] override | CanWrite | bool. Gets a bool value indicating whether the current stream
supports writing. |
| Capacity | int. Gets or sets the number of bytes allocated for the current
stream. |
[read-only] override | Length | long. Gets the length of the stream in bytes. |
override | Position | long. 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) : intReads 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) : longChanges 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. |