Home
last modified time | relevance | path

Searched refs:LocalFileHeader (Results 1 – 5 of 5) sorted by relevance

/system/libziparchive/
Dzip_archive_common.h127 struct LocalFileHeader { struct
158 LocalFileHeader() = default; argument
159 DISALLOW_COPY_AND_ASSIGN(LocalFileHeader);
Dzip_writer.cc177 LocalFileHeader* dst) { in CopyFromFileEntry()
178 dst->lfh_signature = LocalFileHeader::kSignature; in CopyFromFileEntry()
249 off_t offset = current_offset_ + sizeof(LocalFileHeader) + file_entry.path.size(); in StartAlignedEntryWithTime()
270 LocalFileHeader header = {}; in StartAlignedEntryWithTime()
494 LocalFileHeader header = {}; in FinishEntry()
Dzip_archive.cc548 if (lfh_start_bytes != LocalFileHeader::kSignature) { in ParseZipArchive()
728 if (local_header_offset + static_cast<off64_t>(sizeof(LocalFileHeader)) >= cd_offset) { in FindEntry()
733 uint8_t lfh_buf[sizeof(LocalFileHeader)]; in FindEntry()
740 auto lfh = reinterpret_cast<const LocalFileHeader*>(lfh_buf); in FindEntry()
741 if (lfh->lfh_signature != LocalFileHeader::kSignature) { in FindEntry()
755 const off64_t name_offset = local_header_offset + sizeof(LocalFileHeader); in FindEntry()
862 const off64_t data_offset = local_header_offset + sizeof(LocalFileHeader) + in FindEntry()
Dzip_archive_test.cc1020 LocalFileHeader lfh = {}; in ConstructLocalFileHeader()
1021 lfh.lfh_signature = LocalFileHeader::kSignature; in ConstructLocalFileHeader()
1027 reinterpret_cast<uint8_t*>(&lfh) + sizeof(LocalFileHeader)); in ConstructLocalFileHeader()
/system/core/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp298 struct LocalFileHeader { in CalculateLocalFileEntrySize() struct
327 LocalFileHeader() = default; in CalculateLocalFileEntrySize()
328 DISALLOW_COPY_AND_ASSIGN(LocalFileHeader); in CalculateLocalFileEntrySize()
330 static constexpr int kLocalFileHeaderSize = sizeof(LocalFileHeader); in CalculateLocalFileEntrySize()
333 const LocalFileHeader* lfh; in CalculateLocalFileEntrySize()
342 FileRegion lfhMapped(fd_, localFileHeaderOffset, sizeof(LocalFileHeader)); in CalculateLocalFileEntrySize()
343 lfh = reinterpret_cast<const LocalFileHeader*>(lfhMapped.data()); in CalculateLocalFileEntrySize()