TCacheEx

From Ultibo.org
Revision as of 04:38, 17 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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