writeLong method

void writeLong(
  1. int value, {
  2. bool signed = false,
})
inherited

Write a single 8 byte long.

Implementation

void writeLong(int value, {bool signed = false}) {
  flush(8);
  signed
      ? writeByteData.setInt64(writePosition, value, _endianness)
      : writeByteData.setUint64(writePosition, value, _endianness);
  writePosition += 8;
}