$jc function Null safety

int $jc(
  1. int hash,
  2. int value
)

For use by generated code in calculating hash codes. Do not use directly.

Implementation

int $jc(int hash, int value) {
  // Jenkins hash "combine".
  hash = 0x1fffffff & (hash + value);
  hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
  return hash ^ (hash >> 6);
}