Skip to main content

read_package_within

Function read_package_within 

Source
pub fn read_package_within(
    bytes: &[u8],
    limits: PackageLimits,
) -> OgeomResult<Vec<(String, Vec<u8>)>>
Expand description

read_package, refusing a package past limits before reading any entry.

ยงErrors

As read_package, and OgeomError::Construction if the package has more entries or inflates to more bytes than limits allow.