readBoolean method
Reads a byte, and returns false if it is 0, true otherwise.
Throws EOFException if EOF is reached before the needed byte is read.
Implementation
Future<bool> readBoolean() async {
await _ensureNext();
return _curr![_pos++] != 0;
}