signed static method

int signed(
  1. List<int> input, [
  2. int crc = 0
])

Computes a CRC32 value for the given input.

The return value is a signed 32-bit integer.

Implementation

static int signed(List<int> input, [int crc = 0]) {
  var value = unsigned(input, crc);
  if (value > 2147483647) {
    value -= 4294967296;
  }
  return value;
}