[This is preliminary documentation and is subject to change.]

The UnmanagedMemoryStream type exposes the following members.

Properties

  NameDescription
Buffer
Retrieve a pointer to the unmanaged memory buffer. Since this buffer is pointing into unmanaged memory, it does not need to be pinned.
CanRead
Whether the stream can be read from. Always true.
(Overrides Stream..::.CanRead.)
CanSeek
Whether one can seek in the stream. Always true.
(Overrides Stream..::.CanSeek.)
CanTimeout
Gets a value that determines whether the current stream can time out.
(Inherited from Stream.)
CanWrite
Whether on can write to the stream. Always true.
(Overrides Stream..::.CanWrite.)
Capacity
The amount of space in the unmanaged memory buffer. This can be larger than the length of the stream. If you know how many bytes will be written to the stream, you might want to set the capacity (either via this property or through Reserve(Int64)) large enough to avoid resizing the stream multiple times.
Length
The length of the stream, in bytes.
(Overrides Stream..::.Length.)
Position
Reports or sets the position in the stream.
(Overrides Stream..::.Position.)
ReadTimeout
Gets or sets a value that determines how long the stream will attempt to read before timing out.
(Inherited from Stream.)
WriteTimeout
Gets or sets a value that determines how long the stream will attempt to write before timing out.
(Inherited from Stream.)

See Also