readByte method
Reads the byte at the readerIndex and increments the readerIndex by 1 afterwards.
Exceptions:
- ReadIndexOutOfRangeException if readerIndex is outside the bounds of the buffer.
Implementation
int readByte() {
try {
return getByte(readerIndex);
} finally {
readerIndex++;
}
}