[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'LCLResCache' (#lcl)

TBlockResourceCache

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TBlockResourceCache - a cache for Block resources.

Declaration

Source position: lclrescache.pas line 132

type TBlockResourceCache = class(THandleResourceCache)

protected

  FOnCompareDescPtrWithDescriptor: TListSortCompare;

  

FOnCompareDescPtrWithDescriptor - local variable to hold the result of a comparison between a descriptor pointer and the descriptor itself.

public

  constructor Create();

  

Constructor for the class instance.

  function FindDescriptor();

  

FindDescriptor - returns the descriptor whose pointer is given.

  function AddResource();

  

AddResource - inserts a Block resource into the list, referenced by a handle and a descriptor pointer, and returns the Block Resource Cache descriptor.

  function CompareDescriptors(); override;

  

CompareDescriptors - returns 0 if descriptors are equal, -1 if Desc1 is less, 1 if Desc1 is greater.

  property DataSize: Integer; [r]

  

DataSize - the total size of the data in the Block Resource.

  property OnCompareDescPtrWithDescriptor: TListSortCompare; [r]

  

OnCompareDescPtrWithDescriptor - the result of a comparison between a descriptor pointer and the descriptor itself.

end;

Inheritance

TBlockResourceCache

  

TBlockResourceCache - a cache for Block resources.

|

THandleResourceCache

  

THandleResourceCache - a Resource Cache for Handles.

|

TResourceCache

  

TResourceCache - a cache (linked list) for storing Resources.

|

TObject


Version 3.2 Generated 2024-02-25 Home