MemoryOwner<T>
public struct MemoryOwner<T> : IMemoryOwner<T>, IDisposable, ISupplier<Memory<T>>, IFunctional<Func<Memory<T>>>, ISupplier<ReadOnlyMemory<T>>, IFunctional<Func<ReadOnlyMemory<T>>>
Represents unified representation of the memory rented using various
types of memory pools.
Determines whether this memory is empty.
Gets managed pointer to the item in the rented memory.
Gets managed pointer to the item in the rented memory.
Gets numbers of elements in the rented memory block.
Gets the memory belonging to this owner.
Gets the span over the memory belonging to this owner.
Rents the array from the pool.
Rents the memory from the pool.
Rents the memory.
Rents the memory.
Wraps the array as if it was rented.
Wraps the array as if it was rented.
public static MemoryOwner<T> Create<TArg>(method provider, int length, TArg arg, bool exactSize = true)
Releases rented memory.
Attempts to resize this buffer without reallocation.