processToInt32 function

  1. @visibleForTesting
int processToInt32(
  1. Uint8List data,
  2. int start
)

Returns a little Endian int32 interpreted from 4 Uint8s retrieved from data (Uint8List) starting at an index of start (int). The Uint8list length must be at least 4 and start must be data.length - 4 or smaller. Returns -1 if processing has failed.

Implementation

@visibleForTesting
int processToInt32(Uint8List data, int start) {
  return _processToInt32(data, start);
}