Skip to main content

directory_codec_bytes

Function directory_codec_bytes 

Source
pub fn directory_codec_bytes(bytes: &[u8], format_version: u32) -> Result<&[u8]>
Expand description

A directory object’s codec bytes: the whole object under v1, the post-magic slice under v2. (rootLength keeps meaning the root frame’s at-rest length — a paged root fetch is bytes=0..(8+rootLength-1) — so all downstream paged math is unchanged once the magic is stripped.) Public so out-of-band directory consumers (e.g. stt-validate’s direct paged-structure re-check) apply the same version-aware unwrap.