readZeroes method
Reads N bytes and verifies that every one is zero.
Implementation
void readZeroes(int length) {
final start = this.index;
while (length > 0) {
final value = readUint8();
if (value != 0) {
throw _newException(
"expected $length zero bytes found a non-zero byte after ${this.index - 1 - start} bytes",
index: start);
}
}
}