Module dagpb

Source
Expand description

Support operations for the dag-pb, the outer shell of UnixFS dag-pb support operations. Placing this module inside unixfs module is a bit unfortunate but follows from the inseparability of dag-pb and UnixFS.

Structs§

NodeData
The wrapper returned from wrap_node_data, allows accessing dag-pb nodes Data.

Functions§

node_data
Extracts the PBNode::Data field from the block as it appears on the block.
wrap_node_data
Creates a wrapper around the given block representation which does not consume the block representation but allows accessing the dag-pb node Data.