bytesToLongLE method

Int64 bytesToLongLE(
  1. Int8List bytes
)

Implementation

Int64 bytesToLongLE(Int8List bytes) {
  return Int64((bytes[7] & 0xFF) << 56) |
      Int64((bytes[6] & 0xFF) << 48) |
      Int64((bytes[5] & 0xFF) << 40) |
      Int64((bytes[4] & 0xFF) << 32) |
      Int64((bytes[3] & 0xFF) << 24) |
      Int64((bytes[2] & 0xFF) << 16) |
      Int64((bytes[1] & 0xFF) << 8) |
      Int64((bytes[0] & 0xFF));
}