putInt64 method

void putInt64(
  1. int num
)

Writes eight bytes containing the given long value, in little-endian order.

@param l The long value to be written

Implementation

void putInt64(int num) {
  var int64List = Int64List.fromList([num]);
  var bytes = int64List.buffer.asUint8List();
  putBytes(bytes);
}