class ArrayPool<T>
Provides a resource pool that enables reusing instances of type .
TThe type of the objects that are in the resource pool.
public static ArrayPool<T> Create( int maxArrayLength, int maxArraysPerBucket )
Creates a new instance of the class using the specified configuration.
maxArrayLengthThe maximum length of an array instance that may be stored in the pool.maxArraysPerBucketThe maximum number of array instances that may be stored in each bucket in the pool. The pool groups arrays of similar lengths into buckets for faster access.- Returns A new instance of the class with the specified configuration.
public T[] Rent( int minimumLength )
Retrieves a buffer that is at least the requested length.
minimumLengthThe minimum length of the array.- Returns An array of type that is at least in length.
public static ArrayPool<T> Shared { get; }
Gets a shared instance.
- Returns A shared instance.
public static ArrayPool<T> Create( )
😔 No documentation found.
public void Return( T[] array, bool clearArray = False )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.