Home
last modified time | relevance | path

Searched refs:lfh (Results 1 – 2 of 2) sorted by relevance

/system/libziparchive/
Dzip_archive.cc796 auto lfh = reinterpret_cast<const LocalFileHeader*>(lfh_buf); in FindEntry() local
797 if (lfh->lfh_signature != LocalFileHeader::kSignature) { in FindEntry()
806 if (lfh->file_name_length != name_length) { in FindEntry()
808 std::string(entryName).c_str(), lfh->file_name_length, name_length); in FindEntry()
833 uint64_t lfh_uncompressed_size = lfh->uncompressed_size; in FindEntry()
834 uint64_t lfh_compressed_size = lfh->compressed_size; in FindEntry()
843 const off64_t lfh_extra_field_offset = name_offset + lfh->file_name_length; in FindEntry()
844 const uint16_t lfh_extra_field_size = lfh->extra_field_length; in FindEntry()
859 local_extra_field.data(), lfh_extra_field_size, lfh->uncompressed_size, in FindEntry()
860 lfh->compressed_size, std::nullopt, &zip64_info); in FindEntry()
[all …]
Dzip_archive_test.cc1020 LocalFileHeader lfh = {}; in ConstructLocalFileHeader() local
1021 lfh.lfh_signature = LocalFileHeader::kSignature; in ConstructLocalFileHeader()
1022 lfh.compressed_size = compressed_size; in ConstructLocalFileHeader()
1023 lfh.uncompressed_size = uncompressed_size; in ConstructLocalFileHeader()
1024 lfh.file_name_length = static_cast<uint16_t>(name.size()); in ConstructLocalFileHeader()
1025 lfh.extra_field_length = 20; in ConstructLocalFileHeader()
1026 *output = std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&lfh), in ConstructLocalFileHeader()
1027 reinterpret_cast<uint8_t*>(&lfh) + sizeof(LocalFileHeader)); in ConstructLocalFileHeader()