readBool method
Reads the next byte as a bool using 0xFF as true and other values as false at the current readerIndex (inclusive).
Exceptions:
-
ReadIndexOutOfRangeException if the current reader index is outside of the bounds of the buffer
-
BufferOverreadException if the length of the readerIndex + length is outside of the bounds of the buffer
Implementation
bool readBool() => readByte() == 0xFF;