keyOfUnchecked method

TKey keyOfUnchecked(
  1. int nid
)

Hot-path reverse lookup. nid must refer to a live slot within [0, length); behavior on a free slot is a nullable-cast failure in checked mode and undefined in production. Use keyOf when unsure.

Implementation

TKey keyOfUnchecked(int nid) {
  return _nidToKey[nid] as TKey;
}