BigIntToBytesExtension extension
Extension to add our asBytes
handling to BigInt
- on
Methods
-
asBytes(
{Endian endian = Endian.big, int? maxBytes}) → Uint8ClampedList -
Convert a BigInt to bytes with respect to Endianness of
endian
. IfmaxBytes
is set, then it will ensure the result is fixed length such that: