Memory<T>
Returns an empty Memory<T>
Returns true if Length is 0.
The number of items in the memory.
Returns a span from the memory.
Creates a new memory over the entirety of the target array.
Creates a new memory over the portion of the target array beginning
at 'start' index and ending at 'end' index (exclusive).
Defines an implicit conversion of an array to a Memory<T>
Defines an implicit conversion of a ArraySegment<T> to a Memory<T>
Defines an implicit conversion of a Memory<T> to a ReadOnlyMemory<T>
Copies the contents of the memory into the destination. If the source
and destination overlap, this method behaves as if the original values are in
a temporary location before the destination is overwritten.
The Memory to copy items into.Thrown when the destination is shorter than the source.
Returns true if the memory points to the same array and has the same length. Note that
this does *not* check to see if the *contents* are equal.
Creates a handle for the memory.
The GC will not move the memory until the returned MemoryHandle
is disposed, enabling taking and using the memory's address.
An instance with nonprimitive (non-blittable) members cannot be pinned.
Forms a slice out of the given memory, beginning at 'start'.
Forms a slice out of the given memory, beginning at 'start', of given length
Copies the contents from the memory into a new array. This heap
allocates, so should generally be avoided, however it is sometimes
necessary to bridge the gap with APIs written in terms of arrays.
Copies the contents of the memory into the destination. If the source
and destination overlap, this method behaves as if the original values are in
a temporary location before the destination is overwritten.
If the destination is shorter than the source, this method
return false and no data is written to the destination.