Table of Contents

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

elementsCount long
arraysCount int
elementsCapacity long

Properties

ArraysCount

The number of arrays stored in the pool

public int ArraysCount { get; }

Property Value

int

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

long

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

long

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

obj object

Returns

bool

Equals(ArrayPoolUsageData)

public bool Equals(ArrayPoolUsageData other)

Parameters

other ArrayPoolUsageData

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ArrayPoolUsageData, ArrayPoolUsageData)

public static bool operator ==(ArrayPoolUsageData a, ArrayPoolUsageData b)

Parameters

a ArrayPoolUsageData
b ArrayPoolUsageData

Returns

bool

operator !=(ArrayPoolUsageData, ArrayPoolUsageData)

public static bool operator !=(ArrayPoolUsageData a, ArrayPoolUsageData b)

Parameters

a ArrayPoolUsageData
b ArrayPoolUsageData

Returns

bool