pub fn get_chunk_size(chunk_index: u64, size: u64) -> Result<u64>