TVirtualDiskBochsImage

From Ultibo.org
Jump to: navigation, search

Return to Unit VirtualDisk


Description


To be documented

Class definitions



TVirtualDiskBochsImage = class(TVirtualDiskImage)

constructor Create(ADriver:TFileSysDriver; AController:TDiskController; const AName:String; AImageNo:Integer);  
destructor Destroy; override;  
private
 
protected
function GetReady:Boolean; override;  
 
function GetCylinders:LongWord; override;  
function GetHeads:LongWord; override;  
function GetSectors:LongWord; override;  
 
function GetSectorSize:Word; override;  
function GetSectorCount:Int64; override;  
public
function Read(ASector:LongWord; ACount:Word; var ABuffer):Boolean; override;  
function Write(ASector:LongWord; ACount:Word; const ABuffer):Boolean; override;  
function Allocated(ASector:LongWord; ACount:Word):Word; override;  
 
function CreateImage(AMediaType:TMediaType; AFloppyType:TFloppyType; AAttributes:LongWord; ASectorSize:Word; const ASectorCount:Int64; ACylinders,AHeads,ASectors:LongWord; APartitionId:Byte):Integer; override;  
function OpenImage(AMediaType:TMediaType; AFloppyType:TFloppyType; AAttributes:LongWord; ASectorSize:Word; const ASectorCount:Int64; ACylinders,AHeads,ASectors:LongWord; APartitionId:Byte):Integer; override;  
function CloseImage:Boolean; override;  
function ResizeImage(const ASectorCount:Int64):Boolean; override;  


Function declarations



constructor TVirtualDiskBochsImage.Create(ADriver:TFileSysDriver; AController:TDiskController; const AName:String; AImageNo:Integer);
Description: To be documented
Note None documented


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


function TVirtualDiskBochsImage.GetReady:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.GetCylinders:LongWord;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.GetHeads:LongWord;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.GetSectors:LongWord;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.GetSectorSize:Word;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.GetSectorCount:Int64;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.Read(ASector:LongWord; ACount:Word; var ABuffer):Boolean;
Description: To be documented
Note Caller must hold the image lock


function TVirtualDiskBochsImage.Write(ASector:LongWord; ACount:Word; const ABuffer):Boolean;
Description: To be documented
Note Caller must hold the image lock


function TVirtualDiskBochsImage.Allocated(ASector:LongWord; ACount:Word):Word;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.CreateImage(AMediaType:TMediaType; AFloppyType:TFloppyType; AAttributes:LongWord; ASectorSize:Word; const ASectorCount:Int64; ACylinders,AHeads,ASectors:LongWord; APartitionId:Byte):Integer;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.OpenImage(AMediaType:TMediaType; AFloppyType:TFloppyType; AAttributes:LongWord; ASectorSize:Word; const ASectorCount:Int64; ACylinders,AHeads,ASectors:LongWord; APartitionId:Byte):Integer;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.CloseImage:Boolean;
Description: To be documented
Note None documented


function TVirtualDiskBochsImage.ResizeImage(const ASectorCount:Int64):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference