ReadOnlyMemoryExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
AsMemory2D<T>(ReadOnlyMemory<T>, Int32, Int32, Int32, Int32) |
Returns a ReadOnlyMemory2D<T> instance wrapping the underlying data for the given ReadOnlyMemory<T> instance. |
AsMemory2D<T>(ReadOnlyMemory<T>, Int32, Int32) |
Returns a ReadOnlyMemory2D<T> instance wrapping the underlying data for the given ReadOnlyMemory<T> instance. |
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 |