Skip to main content

section_len

Function section_len 

Source
pub fn section_len(cid: &Cid, len: usize) -> usize
Expand description

How many bytes a block of len bytes filed under cid takes in a CAR file: its length prefix, its CID and the block itself.

What a caller sizing a file before writing it counts, section by section.