checkCanRead method

void checkCanRead(
  1. int length
)

Checks if at the current position it's possible to read length bytes.

Implementation

void checkCanRead(int length) {
  if (!canRead(length)) {
    throw BytesBufferEOF();
  }
}