[This is preliminary documentation and is subject to change.]
The UnmanagedMemoryStream type exposes the following members.
Retrieve a pointer to the unmanaged memory buffer. Since this buffer is pointing into unmanaged memory, it does not need to be pinned.
Whether the stream can be read from. Always true.(Overrides Stream..::.CanRead.)
Whether one can seek in the stream. Always true.(Overrides Stream..::.CanSeek.)
Gets a value that determines whether the current stream can time out.(Inherited from Stream.)
Whether on can write to the stream. Always true.(Overrides Stream..::.CanWrite.)
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.
The length of the stream, in bytes.(Overrides Stream..::.Length.)
Reports or sets the position in the stream.(Overrides Stream..::.Position.)
Gets or sets a value that determines how long the stream will attempt to read before timing out.(Inherited from Stream.)
Gets or sets a value that determines how long the stream will attempt to write before timing out.(Inherited from Stream.)