Sign in Join
FPDoc Onlineexperiment

TCache.Data property

Member of TCachepublicIn unit CacheCls

Indexed access to data items.

Declaration

pascal
property Data[SlotIndex: Integer]: Pointer read GetData write SetData;

Description

Data offers index-based access to the data pointers in the cache. By accessing an item in the list in this manner, the item is moved to the front of the MRU list, i.e. MRUSlot will point to the accessed item. The access is both read and write.

The index is zero-based and can maximally be SlotCount-1. Providing an invalid index will result in an exception.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.