Class GorgonArrayPool<T>
Class to return array pools with a specific maximum size for the arrays that are pooled.
Inherited Members
Namespace: Gorgon.Memory
Assembly: Gorgon.Core.dll
Syntax
public static class GorgonArrayPool<T>
Type Parameters
Name | Description |
---|---|
T |
Properties
| Edit this page View SourceSharedHuge
Property to return an array pool with a maximum size of 1,073,741,824 items per array.
Declaration
public static ArrayPool<T> SharedHuge { get; }
Property Value
Type | Description |
---|---|
ArrayPool<T> |
SharedLarge
Property to return an array pool with a maximum size of 134,217,728 items per array.
Declaration
public static ArrayPool<T> SharedLarge { get; }
Property Value
Type | Description |
---|---|
ArrayPool<T> |
SharedMedium
Property to return an array pool with a maximum size of 67,108,864 items per array.
Declaration
public static ArrayPool<T> SharedMedium { get; }
Property Value
Type | Description |
---|---|
ArrayPool<T> |
SharedSmall
Property to return an array pool with a maximum size of 16,777,216 items per array.
Declaration
public static ArrayPool<T> SharedSmall { get; }
Property Value
Type | Description |
---|---|
ArrayPool<T> |
SharedTiny
Property to return an array pool with a maximum size of 1,048,576 items per array.
Declaration
public static ArrayPool<T> SharedTiny { get; }
Property Value
Type | Description |
---|---|
ArrayPool<T> |
Remarks
This is the same as using Shared.
Methods
| Edit this page View SourceGetBestPool(int)
Function to return the best suited pool based on the requested array size.
Declaration
public static ArrayPool<T> GetBestPool(int size)
Parameters
Type | Name | Description |
---|---|---|
int | size | The size of the requested array. |
Returns
Type | Description |
---|---|
ArrayPool<T> | The best suited array pool. |