UDocCursor constructor

UDocCursor(
  1. Uint8List bytes, {
  2. int base = 0,
  3. int start = 0,
  4. int? end,
})

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");
}