crc16code function
Gets the CRC-16 value of a String
Parameters:
input
is the string to hash- The
encoding
is the encoding to use. Default isinput.codeUnits
Implementation
int crc16code(String input, [Encoding? encoding]) {
return crc16.string(input, encoding).number();
}