crc32code function

int crc32code(
  1. String input, [
  2. Encoding? encoding
])

Gets the CRC-32 value of a String

Parameters:

  • input is the string to hash
  • The encoding is the encoding to use. Default is input.codeUnits

Implementation

int crc32code(String input, [Encoding? encoding]) {
  return crc32.string(input, encoding).number();
}