Searched refs:eocd (Results 1 – 2 of 2) sorted by relevance
54 let mut eocd = vec![0u8; eocd_size]; in zip_sections() localVariable55 reader.read_exact(&mut eocd)?; in zip_sections()57 (&eocd[0..]).get_u32_le() == EOCD_SIGNATURE, in zip_sections()60 let (central_directory_size, central_directory_offset) = get_central_directory(&eocd)?; in zip_sections()146 let (pre_eocd, eocd) = buf.split_at(buf.len() - EOCD_SIZE_WITHOUT_COMMENT); in test_reject_if_extra_data_between_cd_and_eocd()147 let (_, cd_offset) = get_central_directory(eocd).unwrap(); in test_reject_if_extra_data_between_cd_and_eocd()151 let res = zip_sections(Cursor::new([pre_eocd, cd, eocd].concat())); in test_reject_if_extra_data_between_cd_and_eocd()
123 let mut eocd = self.bytes(self.eocd_offset, self.eocd_size)?; in eocd_for_verification() localVariable130 set_central_directory_offset(&mut eocd, self.signing_block_offset)?; in eocd_for_verification()131 Ok(Read::take(Box::new(Cursor::new(eocd)), self.eocd_size as u64)) in eocd_for_verification()