encodeValue method

  1. @override
Uint8List encodeValue(
  1. dynamic x
)
override

Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal

Implementation

@override
Uint8List encodeValue(dynamic x) {
  assert((x is int || x is BigInt),
      "value with ${x.runtimeType} has to be int or BigInt");
  return writeIntLE(x, (_bits / 8).ceil());
}