Skip to main content

split_pack

Function split_pack 

Source
pub fn split_pack(pack: &[u8], chunk_size: u32) -> Vec<Vec<u8>>
Expand description

Split a packfile’s bytes into chunks of chunk_size (final chunk may be smaller). Always produces at least one chunk; pack must not be empty.