byteToLong method

Int64 byteToLong(
  1. Int8List bytes
)

Implementation

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