Difference between revisions of "TDiskDevice"
From Ultibo.org
(Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...") |
|||
Line 571: | Line 571: | ||
|colspan="2"| | |colspan="2"| | ||
|- | |- | ||
− | | <code>function OpenDevice(AMode:Integer): | + | | <code>function OpenDevice(AMode:Integer):THandle; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>procedure CloseDevice(AHandle: | + | | <code>procedure CloseDevice(AHandle:THandle); virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function ReadDevice(AHandle: | + | | <code>function ReadDevice(AHandle:THandle; var ABuffer; ACount:Integer):Integer; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function WriteDevice(AHandle: | + | | <code>function WriteDevice(AHandle:THandle; const ABuffer; ACount:Integer):Integer; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function EraseDevice(AHandle: | + | | <code>function EraseDevice(AHandle:THandle; ACount:Integer):Integer; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function SeekDevice(AHandle: | + | | <code>function SeekDevice(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64; virtual;</code> |
| | | | ||
+ | |- | ||
|- | |- | ||
|} | |} | ||
Line 1,090: | Line 1,091: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.OpenDevice(AMode:Integer): | + | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.OpenDevice(AMode:Integer):THandle; virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 1,102: | Line 1,103: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">procedure TDiskDevice.CloseDevice(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">procedure TDiskDevice.CloseDevice(AHandle:THandle); virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 1,114: | Line 1,115: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.ReadDevice(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.ReadDevice(AHandle:THandle; var ABuffer; ACount:Integer):Integer; virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 1,126: | Line 1,127: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.WriteDevice(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.WriteDevice(AHandle:THandle; const ABuffer; ACount:Integer):Integer; virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 1,138: | Line 1,139: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.EraseDevice(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.EraseDevice(AHandle:THandle; ACount:Integer):Integer; virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 1,150: | Line 1,151: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.SeekDevice(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskDevice.SeekDevice(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64; virtual;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> |
Revision as of 04:25, 22 January 2025
Return to Unit Filesystem
Description
To be documented
Class definitions
[Expand]
TDiskDevice = class(TListObject)
Function declarations
[Expand]
constructor TDiskDevice.Create(ADriver:TFileSysDriver; AController:TDiskController; AImage:TDiskImage; AStorage:PStorageDevice; ADeviceNo:Integer; const AIdentifier:String);
Description: To be documented
[Expand]
function TDiskDevice.GetFreeSectors:Int64;
Description: Get the total Count of Unused Sectors on the Device
[Expand]
function TDiskDevice.GetAvailableSectors:Int64;
Description: Get the largest Count of Unused Sectors on the Device
[Expand]
function TDiskDevice.GetAvailableBlock(var AStart,ACount:Int64):Boolean;
Description: Get the Start and Count of largest Unused Sectors on the Device
[Expand]
procedure TDiskDevice.SetDiskSignature(ADiskSignature:LongWord);
Description: To be documented
[Expand]
function TDiskDevice.DeleteVolume(AVolume:TDiskVolume):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.CreatePartition(AParent:TDiskPartition; APartitionId:Byte; ACount:LongWord; AActive:Boolean):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.DeletePartition(APartition:TDiskPartition):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.ModifyPartition(APartition:TDiskPartition; APartitionId:Byte):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.ActivatePartition(APartition:TDiskPartition; AActive:Boolean):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.ShrinkPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.ExpandPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean;
Description: To be documented
[Expand]
function TDiskDevice.OpenDevice(AMode:Integer):THandle; virtual;
Description: To be documented
[Expand]
function TDiskDevice.ReadDevice(AHandle:THandle; var ABuffer; ACount:Integer):Integer; virtual;
Description: To be documented
[Expand]
function TDiskDevice.WriteDevice(AHandle:THandle; const ABuffer; ACount:Integer):Integer; virtual;
Description: To be documented
[Expand]
function TDiskDevice.EraseDevice(AHandle:THandle; ACount:Integer):Integer; virtual;
Description: To be documented
[Expand]
function TDiskDevice.SeekDevice(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64; virtual;
Description: To be documented
Return to Unit Reference