MemoryOwner<T>
public struct MemoryOwner<T> : IMemoryOwner<T>, IDisposable, ISupplier<Memory<T>>, ISupplier<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.
Rents the array from the pool.
Rents the memory from the pool.
Retns 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.
Tries to get an array segment from the underlying memory buffer.
Attempts to resize this buffer without reallocation.