C# Класс BEPUutilities2.ResourceManagement.BufferPool

Contains static helpers for use with buffer pools, avoiding unnecessary type parameters.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Drops all buffer references. Does not affect outstanding references. Not thread safe.

GetBufferCount ( int poolIndex ) : int

Gets the number of buffers for a pool index. Not thread safe.

GetPoolIndex ( int count ) : int

Gets the exponent associated with the buffer pool which would hold the given count of elements.

Описание методов

Clear() публичный абстрактный Метод

Drops all buffer references. Does not affect outstanding references. Not thread safe.
public abstract Clear ( ) : void
Результат void

GetBufferCount() публичный абстрактный Метод

Gets the number of buffers for a pool index. Not thread safe.
public abstract GetBufferCount ( int poolIndex ) : int
poolIndex int Index of the pool to count.
Результат int

GetPoolIndex() публичный статический Метод

Gets the exponent associated with the buffer pool which would hold the given count of elements.
public static GetPoolIndex ( int count ) : int
count int Element count to compute the batch index of.
Результат int