Skip to main content

length

Function length 

Source
pub fn length(bytes: &[u8]) -> Result<usize, PackError>
Expand description

How many bytes the pack at the start of bytes takes, by its header and its index: for a tool that looks for a pack inside a bigger file, such as a program that embeds one with include_bytes!. Nothing here is checked against the checksum: Pack::open the bytes it counts.