Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all the resources used by the PageReplacementAlgorithm object.
|
|
DoCollection ( |
Executes a collection cycle of the pages that are unused.
|
|
PageReplacementAlgorithm ( MemoryPool pool ) : System |
Creates a new instance of PageReplacementAlgorithm.
|
|
TryAddPage ( long position, IntPtr locationOfPage, int memoryPoolIndex ) : bool |
Attempts to add the page to this PageReplacementAlgorithm. Fails if the page already exists.
|
public DoCollection ( |
||
e | ||
return | int |
public PageReplacementAlgorithm ( MemoryPool pool ) : System | ||
pool | MemoryPool | The memory pool that blocks will be allocated from. |
return | System |
public TryAddPage ( long position, IntPtr locationOfPage, int memoryPoolIndex ) : bool | ||
position | long | the absolute position that the page references |
locationOfPage | IntPtr | the pointer to the page |
memoryPoolIndex | int | the index value of the memory pool page so it can be released back to the memory pool |
return | bool |