readInt8 method
Reads the next 1 byte as a signed integer 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
int readInt8() => readByteData(1).getInt8(0);