Skip to main content

unpack

Function unpack 

Source
pub fn unpack(bytes: &[u8]) -> Result<Imported<Unpacked>, OrkError>
Expand description

Unpacks bytes, whichever of the three containers they are in.

Fails only when the bytes are not a .ork file at all, when the container itself is damaged, or when no entry inside it can be the design. An archive entry that cannot be decompressed is skipped with a warning, unless it is the design.