PriorityCache.getPriority

Retrieves an item's priority if it exists.

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

Parameters

key hash_t

the key to look up

priority ulong

the variable that will be assigned the item's priority, the variable contain unknown value if the item doesn't exist

Return Value

Type: T*

Returns an pointer to the updated item or null if it didn't exist

Meta