UByteReader constructor

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

Implementation

UByteReader(Uint8List bytes, {int start = 0, int? end})
  : _bytes = bytes,
    _pos = start,
    _end = end ?? bytes.length {
  if (start < 0 || _end > bytes.length || start > _end) throw const UMediaParseException("Invalid reader window");
}