Home
last modified time | relevance | path

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

/system/libziparchive/
Dzip_archive_common.h129 struct LocalFileHeader { struct
159 LocalFileHeader() = default; argument
162 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.cc587 if (lfh_start_bytes != LocalFileHeader::kSignature) { in ParseZipArchive()
782 if (__builtin_add_overflow(local_header_offset, sizeof(LocalFileHeader), &local_header_end) || in FindEntry()
789 uint8_t lfh_buf[sizeof(LocalFileHeader)]; in FindEntry()
796 auto lfh = reinterpret_cast<const LocalFileHeader*>(lfh_buf); in FindEntry()
797 if (lfh->lfh_signature != LocalFileHeader::kSignature) { in FindEntry()
812 if (__builtin_add_overflow(local_header_offset, sizeof(LocalFileHeader), &name_offset)) { in FindEntry()
924 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()