littleEndian32ToInt function

int littleEndian32ToInt(
  1. List<int> bytes
)

Converts the given bytes to a 32-bit unsigned integer in little-endian byte order.

Implementation

int littleEndian32ToInt(List<int> bytes) {
  assert(bytes.length == 4);
  return ByteData.view(Uint8List.fromList(bytes).buffer)
      .getUint32(0, Endian.little);
}