decodeValue method

  1. @override
dynamic decodeValue(
  1. Pipe x,
  2. CType t
)
override

Implementation

@override
dynamic decodeValue(Pipe x, CType t) {
  checkType(t);
  BigInt num = readIntLE(x, (_bits / 8).ceil());

  if (_bits <= 32) {
    return num.toInt();
  } else {
    // dart int has 64 bit width, should be safe
    return num;
  }
}