TCacheEx

From Ultibo.org
Jump to: navigation, search

Return to Unit Filesystem


Description


To be documented

Class definitions



TCacheEx = class(TCache)

Note: A modified version of TCache which tracks the last used page for faster repeat access. (No longer used)
 
constructor Create(ADriver:TFileSysDriver);  
destructor Destroy; override;  
private
FLastUsed:TCachePage; Most recently used Page
public
function GetDevicePage(ADevice:TDiskDevice; ASector:LongWord):TCachePage; override;  
 
function AllocDevicePage(ADevice:TDiskDevice; ASector:LongWord; AWrite:Boolean):TCachePage; override;  


Function declarations



constructor TCacheEx.Create(ADriver:TFileSysDriver);
Description: To be documented
Note None documented


destructor TCacheEx.Destroy;
Description: To be documented
Note None documented


function TCacheEx.GetDevicePage(ADevice:TDiskDevice; ASector:LongWord):TCachePage;
Description: Get the Clean or Dirty Page that contains this Sector on this Device
Note None documented


function TCacheEx.AllocDevicePage(ADevice:TDiskDevice; ASector:LongWord; AWrite:Boolean):TCachePage;
Description: To be documented
Note None documented


Return to Unit Reference