TResourceCollection
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Collection of resource names
Declaration
Source position: objects.pp line 522
Type
TResourceCollection = object (TStringCollection)
function KeyOf(Item: Pointer) : Pointer; Virtual;
function GetItem(var S: TStream) : Pointer; Virtual;
procedure FreeItem(Item: Pointer); Virtual;
procedure PutItem(var S: TStream; Item: Pointer); Virtual;
end
;
Description
A TResourceCollection manages a collection of resource names. It stores the position and the size of a resource, as well as the name of the resource. It stores these items in records that look like this:
TYPE
TResourceItem = packed RECORD
Posn: LongInt;
Size: LongInt;
Key : String;
End;
PResourceItem = ^TResourceItem;
It overrides some methods of TStringCollection in order to accomplish this.
Remark
Remark that the TResourceCollection manages the names of the resources and their associated positions and sizes, it doesn't manage the resources themselves. !!!
Members
Member | Type | Visibility | Description |
---|---|---|---|
FreeItem | Method | default | Release memory occupied by item. |
GetItem | Method | default | Read an item from the stream. |
KeyOf | Method | default | Return the key of an item in the collection. |
PutItem | Method | default | Write an item to the stream. |
Inheritance
Class | Description |
---|---|
TResourceCollection | Collection of resource names |