PriorityCache.getHighestPriorityItem

Returns the item with highest priority.

class PriorityCache(T)
T*
getHighestPriorityItem
(
out hash_t key
,
out ulong priority
)

Parameters

key hash_t

set to the key of highest priority item

priority ulong

set to the priority of the highest priority item

Return Value

Type: T*

returns a pointer to the highest priority item or null if the cache is empty

Meta