uint64 static method
Little-endian unsigned 64-bit integer, matching put64.
Implementation
static Uint8List uint64(BigInt value) {
if (value.isNegative || value.bitLength > 64) {
throw ArgumentError('Amount does not fit in 8 bytes');
}
final out = Uint8List(8);
var rest = value;
for (var i = 0; i < 8; i++) {
out[i] = (rest & BigInt.from(0xff)).toInt();
rest >>= 8;
}
return out;
}