TNTFSAttributeKey

From Ultibo.org
Jump to: navigation, search

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSAttributeKey = class(TNTFSDiskKey)

constructor Create(ALocalLock:TMutexHandle);  
destructor Destroy; override;  
private
FFileReference:Int64; File reference (Only valid when the last entry flag is not set)
 
FAttribute:TNTFSDiskAttribute; Indexed attribute of this key
 
function GetInvalid:Boolean;  
procedure SetInvalid(AValue:Boolean);  
 
procedure SetKeySize(ASize:Word); override;  
procedure SetAttribute(AAttribute:TNTFSDiskAttribute);  
public
property Invalid:Boolean read GetInvalid write SetInvalid; Key points to invalid file record or attribute
 
property FileReference:Int64 read FFileReference write FFileReference;  
 
property Attribute:TNTFSDiskAttribute read FAttribute write SetAttribute;  
 
function UpdateKey:Boolean;  
 
function RecordNumber:Int64;  
 
function CalculatedSize(AVersion:Word):Word; override;  
 
function ReadKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean; override;  
function WriteKey(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean; override;  


Function declarations



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


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


function TNTFSAttributeKey.GetInvalid:Boolean;
Description: To be documented
Note None documented


procedure TNTFSAttributeKey.SetInvalid(AValue:Boolean);
Description: To be documented
Note None documented


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


procedure TNTFSAttributeKey.SetAttribute(AAttribute:TNTFSDiskAttribute);
Description: To be documented
Note None documented


function TNTFSAttributeKey.UpdateKey:Boolean;
Description: To be documented
Note None documented


function TNTFSAttributeKey.RecordNumber:Int64;
Description: To be documented
Note None documented


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


function TNTFSAttributeKey.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 TNTFSAttributeKey.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