pub fn next_pack_chunk( data: &[u8], chunk_size: usize, chunk_index: usize, ) -> Option<(usize, Vec<u8>, bool)>