Function dag_cbor_references::references
source · pub fn references<R: Read + Seek>(
r: &mut R,
res: &mut Vec<(u64, Hash)>
) -> Result<(), ParseError>
Expand description
Read a dag-cbor block and extract all the links.
‘r’ is a reader that is expected to be at the start of a dag-cbor block. ‘res’ is a vector that will be populated with all the links found.
Will fail unless all links are blake3 hashes.