checkEmpty method

void checkEmpty()

Implementation

void checkEmpty() {
  if (unreadLength != 0) {
    throw "Stream has $unreadLength bytes after decode";
  }
}