System.IO.UnmanagedMemoryStream Members

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

See Also: Inherited members from System.IO.Stream

Public Constructors

Initializes a new instance of the System.IO.UnmanagedMemoryStream class using the specified location and memory length.

Initializes a new instance of the System.IO.UnmanagedMemoryStream class in a safe buffer with a specified offset and length.

Initializes a new instance of the System.IO.UnmanagedMemoryStream class using the specified location, memory length, total amount of memory, and file access values.

Initializes a new instance of the System.IO.UnmanagedMemoryStream class in a safe buffer with a specified offset, length, and file access.

Protected Constructors

Initializes a new instance of the System.IO.UnmanagedMemoryStream class.

Public Properties

[read-only]
override
CanReadbool.

Gets a value indicating whether a stream supports reading.

[read-only]
override
CanSeekbool.

Gets a value indicating whether a stream supports seeking.

[read-only]
override
CanWritebool.

Gets a value indicating whether a stream supports writing.

[read-only]
Capacitylong.

Gets the stream length (size) or the total amount of memory assigned to a stream (capacity).

[read-only]
override
Lengthlong.

Gets the length of the data in a stream.

override
Positionlong.

Gets or sets the current position in a stream.

PositionPointerbyte*.

Gets or sets a byte pointer to a stream based on the current position in the stream.

Public Methods

override
Flush()

Overrides the Stream.Flush method so that no action is performed.

override
Read(byte[], int, int) : int

Reads the specified number of bytes into the specified array.

override
ReadByte() : int

Reads a byte from a stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

override
Seek(long, SeekOrigin) : long

Sets the current position of the current stream to the given value.

override
SetLength(long)

Sets the length of a stream to a specified value.

override
Write(byte[], int, int)

Writes a block of bytes to the current stream using data from a buffer.

override
WriteByte(byte)

Writes a byte to the current position in the file stream.

Protected Methods

override
Dispose(bool)

Releases the unmanaged resources used by the System.IO.UnmanagedMemoryStream and optionally releases the managed resources.

Initialize(byte*, long, long, FileAccess)

Initializes a new instance of the System.IO.UnmanagedMemoryStream class by using a pointer to an unmanaged memory location.

Initialize(System.Runtime.InteropServices.SafeBuffer, long, long, FileAccess)

Initializes a new instance of the System.IO.UnmanagedMemoryStream class in a safe buffer with a specified offset, length, and file access.