Searched refs:lfh (Results 1 – 2 of 2) sorted by relevance
859 const auto lfh = reinterpret_cast<const LocalFileHeader*>( in FindEntry() local861 if (!lfh) { in FindEntry()867 if (lfh->lfh_signature != LocalFileHeader::kSignature) { in FindEntry()876 if (lfh->file_name_length != name_length) { in FindEntry()878 std::string(entryName).c_str(), lfh->file_name_length, name_length); in FindEntry()915 const off64_t lfh_extra_field_offset = name_offset + lfh->file_name_length; in FindEntry()916 const uint16_t lfh_extra_field_size = lfh->extra_field_length; in FindEntry()925 uint64_t lfh_uncompressed_size = lfh->uncompressed_size; in FindEntry()926 uint64_t lfh_compressed_size = lfh->compressed_size; in FindEntry()951 local_extra_field, lfh_extra_field_size, lfh->uncompressed_size, lfh->compressed_size, in FindEntry()[all …]
1034 LocalFileHeader lfh = {}; in ConstructLocalFileHeader() local1035 lfh.lfh_signature = LocalFileHeader::kSignature; in ConstructLocalFileHeader()1036 lfh.compressed_size = compressed_size; in ConstructLocalFileHeader()1037 lfh.uncompressed_size = uncompressed_size; in ConstructLocalFileHeader()1038 lfh.file_name_length = static_cast<uint16_t>(name.size()); in ConstructLocalFileHeader()1039 lfh.extra_field_length = 20; in ConstructLocalFileHeader()1040 *output = std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&lfh), in ConstructLocalFileHeader()1041 reinterpret_cast<uint8_t*>(&lfh) + sizeof(LocalFileHeader)); in ConstructLocalFileHeader()