Difference between revisions of "TNTFSAttrDefs"

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 06:21, 24 May 2018

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSAttrDefs = class(TFileSysList)

constructor Create;  
destructor Destroy; override;  
private
FAttrDefLocal:TMutexHandle;  
 
function GetPrevious(AAttrDef:TNTFSAttrDef):TNTFSAttrDef;  
public
function CreateAttrDef(AType:LongWord; AVersion:Word; ANew:Boolean):TNTFSAttrDef;  
function DestroyAttrDef(AAttrDef:TNTFSAttrDef):Boolean;  
function NewAttrDef(AType:LongWord; const AName:String; AVersion:Word):TNTFSAttrDef;  
function GetAttrDef(AType:LongWord; const AName:String):TNTFSAttrDef;  
function GetAttrDefByIndex(AIndex:Integer; AVersion:Word):TNTFSAttrDef;  
function GetAttrDefByIndexEx(AIndex:Integer; AVersion:Word; AWrite:Boolean):TNTFSAttrDef;  
function GetAttrDefByAttribute(AAttribute:TNTFSDiskAttribute):TNTFSAttrDef;  
function RemoveAttrDef(AAttrDef:TNTFSAttrDef):Boolean;  
 
function CheckSize(AAttribute:TNTFSDiskAttribute;const ASize:Int64):Boolean;  
function CheckIndexed(AAttribute:TNTFSDiskAttribute):Boolean;  
function CheckResident(AAttribute:TNTFSDiskAttribute):Boolean;  
function CheckUncompressed(AAttribute:TNTFSDiskAttribute):Boolean;  
 
function TotalSize:Int64;  
 
function AttrDefCount:LongWord;  
 
function Init(AVersion:Word):Boolean;  
 
function ReadAttrDefs(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  
function WriteAttrDefs(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  


Function declarations



constructor TNTFSAttrDefs.Create;
Description: To be documented
Note None documented


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


function TNTFSAttrDefs.GetPrevious(AAttrDef:TNTFSAttrDef):TNTFSAttrDef;
Description: To be documented
Note Caller must hold the lock


function TNTFSAttrDefs.CreateAttrDef(AType:LongWord; AVersion:Word; ANew:Boolean):TNTFSAttrDef;
Description: Create an attribute def, add to end of list
Note None documented


function TNTFSAttrDefs.DestroyAttrDef(AAttrDef:TNTFSAttrDef):Boolean;
Description: Remove the attribute def from the list and free
Note None documented


function TNTFSAttrDefs.NewAttrDef(AType:LongWord; const AName:String; AVersion:Word):TNTFSAttrDef;
Description: Create an attribute def, insert in sorted list
Note None documented


function TNTFSAttrDefs.GetAttrDef(AType:LongWord; const AName:String):TNTFSAttrDef;
Description: Get an attribute def by type and name
Note None documented


function TNTFSAttrDefs.GetAttrDefByIndex(AIndex:Integer; AVersion:Word):TNTFSAttrDef;
Description: To be documented
Note None documented


function TNTFSAttrDefs.GetAttrDefByIndexEx(AIndex:Integer; AVersion:Word; AWrite:Boolean):TNTFSAttrDef;
Description: To be documented
Note None documented


function TNTFSAttrDefs.GetAttrDefByAttribute(AAttribute:TNTFSDiskAttribute):TNTFSAttrDef;
Description: To be documented
Note None documented


function TNTFSAttrDefs.RemoveAttrDef(AAttrDef:TNTFSAttrDef):Boolean;
Description: Remove the attribute def from the list and free
Note None documented


function TNTFSAttrDefs.CheckSize(AAttribute:TNTFSDiskAttribute; const ASize:Int64):Boolean;
Description: Check if the Attribute can be made the passed size (Smaller or Larger)
Note None documented


function TNTFSAttrDefs.CheckIndexed(AAttribute:TNTFSDiskAttribute):Boolean;
Description: Check if the Attribute must be indexed
Note None documented


function TNTFSAttrDefs.CheckResident(AAttribute:TNTFSDiskAttribute):Boolean;
Description: Check if the Attribute must be resident
Note None documented


function TNTFSAttrDefs.CheckUncompressed(AAttribute:TNTFSDiskAttribute):Boolean;
Description: Check if the Attribute must be uncompresed
Note None documented


function TNTFSAttrDefs.TotalSize:Int64;
Description: To be documented
Note None documented


function TNTFSAttrDefs.AttrDefCount:LongWord;
Description: To be documented
Note None documented


function TNTFSAttrDefs.Init(AVersion:Word):Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDefs.ReadAttrDefs(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Read the attribute def items from the supplied buffer at the supplied offset
Note None documented


function TNTFSAttrDefs.WriteAttrDefs(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Write the attribute def items to the supplied buffer at the supplied offset
Note None documented


Return to Unit Reference