decode method

  1. @override
DecodingResult<BigInt> decode(
  1. ByteBuffer buffer,
  2. int offset
)
inherited

Decode.

Implementation

@override
DecodingResult<BigInt> decode(ByteBuffer buffer, int offset) {
  // we're always going to read a 32-byte block for integers
  return DecodingResult(
    _decode32Bytes(buffer.asUint8List(offset, sizeUnitBytes)),
    sizeUnitBytes,
  );
}