Skip to main content

flat_bundle_version

Function flat_bundle_version 

Source
pub fn flat_bundle_version(bytes: &[u8]) -> Option<u32>
Expand description

The layout version of the flat bundle starting at bytes, if it is one.

Only the header is read, so this tells the two bundle formats apart from a file’s first bytes: enough to pick a reader, or to know that an export may replace what is already at its output path.