UDocCursor constructor
Implementation
UDocCursor(this.bytes, {this.base = 0, int start = 0, int? end}) : _pos = start, _end = end ?? bytes.length {
if (start < 0 || _end > bytes.length || start > _end) throw const UDocParseException("Invalid cursor window");
}