CarReader class

Streaming/iterable reader for CAR v1 and v2 archives.

Constructors

CarReader.fromBytes(Uint8List bytes)
Parses a CAR archive from the given byte data.
CarReader.fromStream(Stream<Uint8List> stream)
Parses a CAR archive from a stream of byte chunks.

Properties

hashCode int
The hash code for this object.
no setterinherited
The decoded CAR header.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findCID(CID cid) Future<int?>
Returns the byte offset of the section containing cid, or null if not present.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sections() Stream<CarSection>
Returns a stream that yields each CarSection in file order.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited