Skip to main content

write_package

Function write_package 

Source
pub fn write_package(
    header: &Signed<BotPackage>,
    manifest: &[u8],
    component: &[u8],
) -> Result<Vec<u8>, EncodeError>
Expand description

Writes a .zbot file from a signed header and its parts. The caller computed the header’s hashes from these exact manifest and component bytes.

§Errors

EncodeError::OverLimit for a part over its limit.