Edit

Share via


ReadOnlyMemoryExtensions Class

Definition

Helpers for working with the ReadOnlyMemory<T> type.

public static class ReadOnlyMemoryExtensions
type ReadOnlyMemoryExtensions = class
Public Module ReadOnlyMemoryExtensions
Inheritance
ReadOnlyMemoryExtensions

Methods

AsBytes<T>(ReadOnlyMemory<T>)

Casts a ReadOnlyMemory<T> of one primitive type T to ReadOnlyMemory<T> of bytes.

AsStream(ReadOnlyMemory<Byte>)

Returns a Stream wrapping the contents of the given ReadOnlyMemory<T> of Byte instance.

Cast<TFrom,TTo>(ReadOnlyMemory<TFrom>)

Casts a ReadOnlyMemory<T> of one primitive type TFrom to another primitive type TTo.

Applies to