require method

void require(
  1. int count
)

Implementation

void require(int count) {
  if (count < 0) throw const UDocParseException("Negative read length");
  if (remaining < count) throw UDocParseException("Read of $count exceeds buffer", offset: absolute);
}