idlHash function

int idlHash(
  1. String s
)

Implementation

int idlHash(String s) {
  final arr = utf8.encode(s);
  int h = 0;
  for (final c in arr) {
    h = (h * 223 + c) % pow(2, 32).toInt();
  }
  return h;
}