Skip to main content

car_header_bytes

Function car_header_bytes 

Source
pub fn car_header_bytes(roots: &[Cid]) -> Vec<u8> ⓘ
Expand description

Build just the CARv1 header section (varint-framed CBOR {version, roots}). Useful for lazy/streaming CAR producers that emit the header first, then block sections one at a time.