Struct ArrayPoolUsageData
Data about how full an ArrayPool<T> is
public readonly struct ArrayPoolUsageData
Constructors
ArrayPoolUsageData(long, int, long)
public ArrayPoolUsageData(long elementsCount, int arraysCount, long elementsCapacity)
Parameters
Properties
ArraysCount
The number of arrays stored in the pool
public int ArraysCount { get; }
Property Value
ElementsCapacity
The maximal number of elements that the pool will keep, after they have been freed, to be available for future usage. Once this limit is reached, every freed array will simply get ignored, allowing the garbage collector to collect it
public long ElementsCapacity { get; }
Property Value
Remarks
This is not the maximal number of arrays, but the maximal sum of the arrays' lengths
ElementsCount
The number of elements that the pool will keep, after they have been freed, to be available for future usage.
public long ElementsCount { get; }
Property Value
Remarks
This is not the maximal number of arrays, but the maximal sum of the arrays' lengths
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(ArrayPoolUsageData)
public bool Equals(ArrayPoolUsageData other)
Parameters
otherArrayPoolUsageData
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ArrayPoolUsageData, ArrayPoolUsageData)
public static bool operator ==(ArrayPoolUsageData a, ArrayPoolUsageData b)
Parameters
Returns
operator !=(ArrayPoolUsageData, ArrayPoolUsageData)
public static bool operator !=(ArrayPoolUsageData a, ArrayPoolUsageData b)