Skip to main content

Module node_reader

Module node_reader 

Source
Expand description

Reader utilities for decoding Old Faithful CAR node streams.

Structs§

NodeReader
Incremental reader that produces typed nodes from an Old Faithful CAR stream.
RawNode
Raw DAG-CBOR node paired with its Cid.

Statics§

TOTAL_BYTES_READ
Total CAR section bytes read across all readers and threads since process start. Frontends (e.g. the TUI) sample this to derive an overall data rate.

Traits§

Len
Trait for readers that can report their total length.

Functions§

cid_from_cbor_link
Extracts a CID from a DAG-CBOR link value.
read_uvarint
Reads an unsigned LEB128-encoded integer from the provided async reader.