fromBytes64 static method

int fromBytes64(
  1. List<int> bytes, {
  2. int offset = 0,
  3. Endian byteOrder = Endian.big,
  4. bool sign = false,
})

Reads 8 bytes as an integer.

Implementation

static int fromBytes64(
  List<int> bytes, {
  int offset = 0,
  Endian byteOrder = Endian.big,
  bool sign = false,
}) {
  _checkLength(bytes, 8, 'fromBytes64', offset: offset);
  // Routed through the BigInt + isValidInt path inside fromBytes
  // automatically, since 8 > 6. Throws if the decoded value can't
  // be represented as a Dart int.
  return fromBytes(
    bytes,
    offset: offset,
    length: 8,
    byteOrder: byteOrder,
    sign: sign,
  );
}