writeUint64LE function

List<int> writeUint64LE(
  1. int value, [
  2. List<int>? out,
  3. int offset = 0
])

Writes a 64-bit unsigned integer value in little-endian byte order to a list.

Implementation

List<int> writeUint64LE(int value, [List<int>? out, int offset = 0]) {
  out ??= List<int>.filled(8, 0);

  writeUint32LE(value & mask32, out, offset);
  writeUint32LE((value >> 32) & mask32, out, offset + 4);

  return out;
}