ArrayRental<T>
public struct ArrayRental<T> : IMemoryOwner<T>, IDisposable, IConvertible<Memory<T>>, IConvertible<ArraySegment<T>>, IConvertible<MemoryOwner<T>>
Represents array obtained from array pool.
Gets value indicating that this object is empty.
Gets the array element by its index.
Gets length of the rented array.
Gets the memory associated with the rented array.
Converts this instance to MemoryOwner<T>.
Gets the rented array.
Gets the span of array elements.
Obtains a new array from array pool.
Obtains a new array from array pool.
Obtains a new array from Shared.
Obtains a new array from Shared.
Rents the array.
Rents the array.
Converts rented array to the memory owner.
Sets all elements of the rented array to default value of type T.
Returns the array back to the pool.
Obtains managed pointer to the first element of the rented array.