Return to Unit VirtualDisk
Description
To be documented
Class definitions
[Expand]
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
[Expand]
constructor TVirtualDiskExtent.Create(AImage:TVirtualDiskImage; ADelta,AParent:TVirtualDiskExtent);
Description: To be documented
[Expand]
destructor TVirtualDiskExtent.Destroy;
Description: To be documented
[Expand]
function TVirtualDiskExtent.GetFilename:String;
Description: To be documented
[Expand]
procedure TVirtualDiskExtent.SetFilename(const AFilename:String);
Description: To be documented
[Expand]
function TVirtualDiskExtent.GetBlockShiftCount:LongWord;
Description: To be documented
[Expand]
function TVirtualDiskExtent.AcquireLock:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.ReleaseLock:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.IsFixed:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.IsDynamic:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.IsBase:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.IsDelta:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.IsDevice:Boolean;
Description: To be documented
[Expand]
function TVirtualDiskExtent.HasDelta:Boolean;
Description: To be documented
Return to Unit Reference