TVirtualDiskExtent

From Ultibo.org
Jump to: navigation, search

Return to Unit VirtualDisk


Description


To be documented

Class definitions



TVirtualDiskExtent = class(TListObject)

Note: Represents an Extent (usually a file) forming part of a virtual disk
 
constructor Create(AImage:TVirtualDiskImage; ADelta,AParent:TVirtualDiskExtent);  
destructor Destroy; override;  
private
FLock:TMutexHandle;  
protected
FImage:TVirtualDiskImage;  
FDelta:TVirtualDiskExtent;  
FParent:TVirtualDiskExtent;  
 
FFlags:LongWord;  
 
FFilename:String; Filename of the file backing this Extent
FHandle:THandle; DiskDriver Handle to the file of this Extent
 
FDataOffset:Int64; Absolute byte offset of Data in file (Where Applicable)
FBlockSize:LongWord; Size of each data block in file
 
FStartSector:Int64; First Sector contained by this Extent
FSectorCount:Int64; Number of Sectors contained by this Extent
 
FBlockShiftCount:LongWord; Sector to Block Shift Count
 
function GetFilename:String;  
procedure SetFilename(const AFilename:String);  
 
function GetBlockShiftCount:LongWord; virtual;  
public
property Image:TVirtualDiskImage read FImage;  
property Delta:TVirtualDiskExtent read FDelta write FDelta;  
property Parent:TVirtualDiskExtent read FParent write FParent;  
 
property Flags:LongWord read FFlags write FFlags;  
 
property Filename:String read GetFilename write SetFilename;  
property Handle:THandle read FHandle write FHandle;  
 
property DataOffset:Int64 read FDataOffset write FDataOffset;  
property BlockSize:LongWord read FBlockSize write FBlockSize;  
 
property StartSector:Int64 read FStartSector write FStartSector;  
property SectorCount:Int64 read FSectorCount write FSectorCount;  
 
property BlockShiftCount:LongWord read FBlockShiftCount write FBlockShiftCount;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function IsFixed:Boolean; virtual;  
function IsDynamic:Boolean; virtual;  
 
function IsBase:Boolean; virtual;  
function IsDelta:Boolean; virtual;  
 
function IsDevice:Boolean; virtual;  
 
function HasDelta:Boolean; virtual;  


Function declarations



constructor TVirtualDiskExtent.Create(AImage:TVirtualDiskImage; ADelta,AParent:TVirtualDiskExtent);
Description: To be documented
Note None documented


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


function TVirtualDiskExtent.GetFilename:String;
Description: To be documented
Note None documented


procedure TVirtualDiskExtent.SetFilename(const AFilename:String);
Description: To be documented
Note None documented


function TVirtualDiskExtent.GetBlockShiftCount:LongWord;
Description: To be documented
Note None documented


function TVirtualDiskExtent.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.IsFixed:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.IsDynamic:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.IsBase:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.IsDelta:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.IsDevice:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskExtent.HasDelta:Boolean;
Description: To be documented
Note None documented


Return to Unit Reference