Searched refs:eocd (Results 1 – 2 of 2) sorted by relevance
252 auto eocd = reinterpret_cast<const EocdRecord*>(scan_buffer.data() + i); in FindCentralDirectoryInfo() local257 const off64_t calculated_length = eocd_offset + sizeof(EocdRecord) + eocd->comment_length; in FindCentralDirectoryInfo()265 if (eocd->cd_size == UINT32_MAX || eocd->cd_start_offset == UINT32_MAX) { in FindCentralDirectoryInfo()267 eocd->cd_size, eocd->cd_start_offset); in FindCentralDirectoryInfo()275 if (static_cast<off64_t>(eocd->cd_start_offset) + eocd->cd_size > eocd_offset) { in FindCentralDirectoryInfo()277 eocd->cd_start_offset, eocd->cd_size, static_cast<int64_t>(eocd_offset)); in FindCentralDirectoryInfo()281 *cdInfo = {.num_records = eocd->num_records, in FindCentralDirectoryInfo()282 .cd_size = eocd->cd_size, in FindCentralDirectoryInfo()283 .cd_start_offset = eocd->cd_start_offset}; in FindCentralDirectoryInfo()
1149 EocdRecord eocd = {}; in ConstructEocd() local1150 eocd.eocd_signature = EocdRecord::kSignature, in ConstructEocd()1151 eocd.num_records = file_entries_.size() > UINT16_MAX in ConstructEocd()1154 eocd.cd_size = UINT32_MAX; in ConstructEocd()1155 eocd.cd_start_offset = UINT32_MAX; in ConstructEocd()1156 eocd_record_ = std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&eocd), in ConstructEocd()1157 reinterpret_cast<uint8_t*>(&eocd) + sizeof(EocdRecord)); in ConstructEocd()