[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 130

`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();` |  |
`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 - thetotal 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`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.