crc16code function

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

Gets the CRC-16 value of a String

Parameters:

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

Implementation

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