Skip to main content

save_cache

Function save_cache 

Source
pub fn save_cache(
    path: &Path,
    tree: &DiskTree,
    meta: &CacheMetadata,
) -> Result<()>
Expand description

Save a tree to cache file

File format: [4B] Magic “DUXC” [4B] Version (u32 LE) [4B] Metadata length (u32 LE) [NB] Metadata (postcard) [4B] Tree length (u32 LE) [MB] Tree (postcard) [4B] CRC32 checksum of all preceding bytes