writeInt64 method

void writeInt64(
  1. int value, [
  2. Endian? endian
])

Writes the value as a 8 byte long signed integer at the current writerIndex (inclusive).

endian the endianness of the number, defaults to kEndianness which is initialized with Endian.big.


Exceptions:

Implementation

void writeInt64(int value, [Endian? endian]) =>
    writeByteData(8).setInt64Duffer(0, value, endian ?? kEndianness);