read method
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;
}