checkBytesAvailable method
Implementation
void checkBytesAvailable(int number) {
if (number > unreadLength) {
throw "There is not enough $number bytes in stream";
}
}
void checkBytesAvailable(int number) {
if (number > unreadLength) {
throw "There is not enough $number bytes in stream";
}
}