MemoryExtensions 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 Memory<T> type.
public static class MemoryExtensions
type MemoryExtensions = class
Public Module MemoryExtensions
- Inheritance
-
MemoryExtensions
Methods
AsBytes<T>(Memory<T>) |
Casts a Memory<T> of one primitive type |
AsMemory2D<T>(Memory<T>, Int32, Int32, Int32, Int32) |
Returns a Memory2D<T> instance wrapping the underlying data for the given Memory<T> instance. |
AsMemory2D<T>(Memory<T>, Int32, Int32) |
Returns a Memory2D<T> instance wrapping the underlying data for the given Memory<T> instance. |
AsStream(Memory<Byte>) |
Returns a Stream wrapping the contents of the given Memory<T> of Byte instance. |
Cast<TFrom,TTo>(Memory<TFrom>) |
Casts a Memory<T> of one primitive type |