CarReader.fromStream constructor

CarReader.fromStream(
  1. Stream<Uint8List> stream
)

Parses a CAR archive from a stream of byte chunks.

Note: The current implementation accumulates incoming chunks into a single buffer before parsing. This satisfies the standard API while keeping the parser simple; future work can replace the accumulator with a true incremental parser.

Implementation

CarReader.fromStream(Stream<Uint8List> stream)
  : _bytes = null,
    _stream = stream;