readFixInt64 method

Int64 readFixInt64(
  1. [Endian endian = Endian.big]
)

Reads a 64-bit signed integer as Int64 (from 'package:fixnum'). Increments index by 8.

Implementation

Int64 readFixInt64([Endian endian = Endian.big]) {
  final bytes = readUint8ListCopy(8);
  if (endian == Endian.little) {
    return new Int64.fromBytes(bytes);
  } else {
    return new Int64.fromBytesBigEndian(bytes);
  }
}