Difference between revisions of "TNTFSDiskKey"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit NTFSClass __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible m...")
 
(No difference)

Latest revision as of 05:54, 24 May 2018

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSDiskKey = class(TBtreeObject)

Note: Represents an INDX record entry.
 
constructor Create(ALocalLock:TMutexHandle);  
destructor Destroy; override;  
private
FLocalLock:TMutexHandle;  
 
FStatus:LongWord;  
FKey:Pointer;  
 
FEntryFlags:Word; Flags (See Consts)
FEntrySize:Word; Length of the index entry
FKeySize:Word; Length of the key entry
FSubNodeNumber:Int64; Number of the sub-node in the index allocation attribute
 
FNode:TNTFSDiskNode; Index node of this key
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function GetChanged:Boolean;  
procedure SetChanged(AValue:Boolean);  
 
function GetHasSubNode:Boolean;  
procedure SetHasSubNode(AValue:Boolean);  
function GetIsLastNode:Boolean;  
procedure SetIsLastNode(AValue:Boolean);  
 
procedure SetKeySize(ASize:Word); virtual;  
procedure SetSubNodeNumber(const ANodeNumber:Int64);  
 
procedure SetNode(ANode:TNTFSDiskNode);  
public
property Changed:Boolean read GetChanged write SetChanged; Index record to be updated
 
property HasSubNode:Boolean read GetHasSubNode write SetHasSubNode;  
property IsLastNode:Boolean read GetIsLastNode write SetIsLastNode;  
 
property Key:Pointer read FKey;  
 
property EntryFlags:Word read FEntryFlags write FEntryFlags;  
property EntrySize:Word read FEntrySize write FEntrySize;  
property KeySize:Word read FKeySize write SetKeySize;  
property SubNodeNumber:Int64 read FSubNodeNumber write SetSubNodeNumber;  
 
property Node:TNTFSDiskNode read FNode write SetNode;  
 
function CalculatedSize(AVersion:Word):Word; virtual;  
 
function ReadKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean; virtual;  
function WriteKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean; virtual;  


Function declarations



constructor TNTFSDiskKey.Create(ALocalLock:TMutexHandle);
Description: To be documented
Note None documented


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


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


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


function TNTFSDiskKey.GetChanged:Boolean;
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetChanged(AValue:Boolean);
Description: To be documented
Note None documented


function TNTFSDiskKey.GetHasSubNode:Boolean;
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetHasSubNode(AValue:Boolean);
Description: To be documented
Note None documented


function TNTFSDiskKey.GetIsLastNode:Boolean;
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetIsLastNode(AValue:Boolean);
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetKeySize(ASize:Word);
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetSubNodeNumber(const ANodeNumber:Int64);
Description: To be documented
Note None documented


procedure TNTFSDiskKey.SetNode(ANode:TNTFSDiskNode);
Description: To be documented
Note None documented


function TNTFSDiskKey.CalculatedSize(AVersion:Word):Word;
Description: To be documented
Note Calculated Size includes any rounding required for alignment


function TNTFSDiskKey.ReadKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Read the index entry from the supplied buffer at the supplied offset
Note None documented


function TNTFSDiskKey.WriteKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Write the index entry to the supplied buffer at the supplied offset
Note None documented


Return to Unit Reference