bdGetUint64 function
Read a little-endian 64-bit value written by bdSetUint64. Safe on dart2js for values up to 2^53 – 1.
Implementation
int bdGetUint64(ByteData bd, int offset) {
final lo = bd.getUint32(offset, Endian.little);
final hi = bd.getUint32(offset + 4, Endian.little);
return (hi * 0x100000000) + lo; // hi << 32 | lo, safe in JS
}