Skip to main content

load_bundle

Function load_bundle 

Source
pub fn load_bundle<P: AsRef<Path>>(
    path: P,
) -> BundleResult<(BundleHeader, ModelBundle)>
Expand description

Read a bundle from disk, returning both the header (decoded eagerly) and the full payload.

Errors if the file is too short, the magic bytes are wrong, the version is unsupported, or either JSON blob fails to deserialize.