read method

int read(
  1. int n, {
  2. dynamic ignore = false,
})

Implementation

int read(int n, {ignore: false}) {
  if (ignore) {
    index += n;
    return 0;
  }
  final start = index;
  int value = 0;
  for (var i = 0; i < n; i++) {
    value *= pow(2, 8).toInt();
    value += buffer[start + i];
  }
  index += n;
  return value;
}