Свойство | Тип | Описание | |
---|---|---|---|
MemoryPoolCeiling | long | ||
PageSize | int |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Disposes of all of the memory on the list.
|
|
GrowMemoryPool ( long size ) : bool |
Grows the buffer pool to have the desired size
|
|
MemoryPoolPageList ( int pageSize, long maximumBufferSize ) : System |
Create a thread safe list of MemoryPool pages.
|
|
ReleasePage ( int index ) : void |
Releases a block back to the pool so it can be re-allocated.
|
|
SetMaximumPoolSize ( long value ) : long |
Changes the allowable buffer size
|
|
ShrinkMemoryPool ( long size ) : long |
Tries to shrink the buffer pool to the provided size The buffer pool shrinks to a size less than or equal to size. |
|
TryGetNextPage ( int &index, |
Requests a new block from the buffer pool.
|
Метод | Описание | |
---|---|---|
CalculateMemoryBlockSize ( int pageSize, long totalSystemMemory ) : int |
Calculates the desired allocation block size to request from the OS. The recommended block size is the totalSystemMemory divided by 1000 but must be a multiple of the system allocation size and the page size and cannot be larger than 1GB |
|
CalculateMemoryPoolCeiling ( int memoryBlockSize, long systemTotalPhysicalMemory ) : long |
Computes the ceiling of the buffer pool
|
public GrowMemoryPool ( long size ) : bool | ||
size | long | |
Результат | bool |
public MemoryPoolPageList ( int pageSize, long maximumBufferSize ) : System | ||
pageSize | int | The desired page size. Must be between 4KB and 256KB |
maximumBufferSize | long | The desired maximum size of the allocation. Note: could be less if there is not enough system memory. /// A value of -1 will default based on available system memory |
Результат | System |
public ReleasePage ( int index ) : void | ||
index | int | the index identifier of the block |
Результат | void |
public SetMaximumPoolSize ( long value ) : long | ||
value | long | the number of bytes to set. |
Результат | long |
public ShrinkMemoryPool ( long size ) : long | ||
size | long | The size of the buffer pool |
Результат | long |
public TryGetNextPage ( int &index, |
||
index | int | the index identifier of the block |
addressPointer | the address to the start of the block | |
Результат | bool |