Difference between revisions of "TDiskPartition"
From Ultibo.org
(Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 313: | Line 313: | ||
|colspan="2"| | |colspan="2"| | ||
|- | |- | ||
− | | <code>function OpenPartition(AMode:Integer): | + | | <code>function OpenPartition(AMode:Integer):THandle; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>procedure ClosePartition(AHandle: | + | | <code>procedure ClosePartition(AHandle:THandle); virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function ReadPartition(AHandle: | + | | <code>function ReadPartition(AHandle:THandle; var ABuffer; ACount:Integer):Integer; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function WritePartition(AHandle: | + | | <code>function WritePartition(AHandle:THandle; const ABuffer; ACount:Integer):Integer; virtual;</code> |
| | | | ||
|- | |- | ||
− | | <code>function SeekPartition(AHandle: | + | | <code>function SeekPartition(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64; virtual;</code> |
| | | | ||
|- | |- | ||
Line 650: | Line 650: | ||
<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 TDiskPartition.OpenPartition(AMode:Integer): | + | <pre style="border: 0; padding-bottom:0px;">function TDiskPartition.OpenPartition(AMode:Integer):THandle;</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 662: | Line 662: | ||
<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 TDiskPartition.ClosePartition(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">procedure TDiskPartition.ClosePartition(AHandle:THandle);</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 674: | Line 674: | ||
<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 TDiskPartition.ReadPartition(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskPartition.ReadPartition(AHandle:THandle; var ABuffer; ACount:Integer):Integer;</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 686: | Line 686: | ||
<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 TDiskPartition.WritePartition(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskPartition.WritePartition(AHandle:THandle; const ABuffer; ACount:Integer):Integer;</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 698: | Line 698: | ||
<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 TDiskPartition.SeekPartition(AHandle: | + | <pre style="border: 0; padding-bottom:0px;">function TDiskPartition.SeekPartition(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64;</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;"> |
Latest revision as of 04:55, 29 January 2025
Return to Unit Filesystem
Description
To be documented
Class definitions
[Expand]
TDiskPartition = class(TListObject)
Function declarations
[Expand]
constructor TDiskPartition.Create(ADriver:TFileSysDriver; ADevice:TDiskDevice; APartition:TDiskPartition; APartitionNo:Integer);
Description: To be documented
[Expand]
function TDiskPartition.GetLogical:Boolean;
Description: Check for a non extended partition with a parent
[Expand]
function TDiskPartition.GetPrimary:Boolean;
Description: Check for a non extended partition with no parent
[Expand]
procedure TDiskPartition.SetExtended(AExtended:Boolean);
Description: Mark partition as extended, update no and recalculate start
[Expand]
function TDiskPartition.GetFreeSectors:LongWord;
Description: Get the total Count of Unused Sectors in the Partition
[Expand]
function TDiskPartition.GetAvailableSectors:LongWord;
Description: Get the largest Count of Unused Sectors in the Partition
[Expand]
function TDiskPartition.GetAvailableBlock(var AStart,ACount:LongWord):Boolean;
Description: Get the Start and Count of largest Unused Sectors in the Partition
[Expand]
function TDiskPartition.GetRoot:TDiskPartition;
Description: Returns the first level extended for a second level plus partition
[Expand]
function TDiskPartition.ReaderConvert:Boolean;
Description: Convert a Reader lock to a Writer lock
[Expand]
function TDiskPartition.WriterConvert:Boolean;
Description: Convert a Writer lock to a Reader lock
[Expand]
function TDiskPartition.DeleteVolume(AVolume:TDiskVolume):Boolean;
Description: To be documented
[Expand]
function TDiskPartition.OpenPartition(AMode:Integer):THandle;
Description: To be documented
[Expand]
function TDiskPartition.ReadPartition(AHandle:THandle; var ABuffer; ACount:Integer):Integer;
Description: To be documented
[Expand]
function TDiskPartition.WritePartition(AHandle:THandle; const ABuffer; ACount:Integer):Integer;
Description: To be documented
[Expand]
function TDiskPartition.SeekPartition(AHandle:THandle; const AOffset:Int64; AOrigin:Integer):Int64;
Description: To be documented
Return to Unit Reference