Lines Matching refs:off64_t
154 off64_t eocdOffset, CentralDirectoryInfo* cdInfo) { in FindCentralDirectoryInfoForZip64()
213 off64_t file_length, uint32_t read_amount, in FindCentralDirectoryInfo()
216 const off64_t search_start = file_length - read_amount; in FindCentralDirectoryInfo()
246 const off64_t eocd_offset = search_start + i; in FindCentralDirectoryInfo()
252 const off64_t calculated_length = eocd_offset + sizeof(EocdRecord) + eocd->comment_length; in FindCentralDirectoryInfo()
270 if (static_cast<off64_t>(eocd->cd_start_offset) + eocd->cd_size > eocd_offset) { in FindCentralDirectoryInfo()
292 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory()
302 if (file_length < static_cast<off64_t>(sizeof(EocdRecord))) { in MapCentralDirectory()
348 if (!archive->InitializeCentralDirectory(static_cast<off64_t>(cdInfo.cd_start_offset), in MapCentralDirectory()
500 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()
574 off64_t length, off64_t offset, bool assume_ownership) { in OpenArchiveFdRange()
633 off64_t offset = entry->offset; in ValidateDataDescriptor()
693 const off64_t cd_offset = archive->directory_offset; in FindEntry()
707 off64_t local_header_offset = cdr->local_file_header_offset; in FindEntry()
728 if (local_header_offset + static_cast<off64_t>(sizeof(LocalFileHeader)) >= cd_offset) { in FindEntry()
755 const off64_t name_offset = local_header_offset + sizeof(LocalFileHeader); in FindEntry()
781 const off64_t lfh_extra_field_offset = name_offset + lfh->file_name_length; in FindEntry()
862 const off64_t data_offset = local_header_offset + sizeof(LocalFileHeader) + in FindEntry()
1079 const off64_t current_offset = lseek64(fd, 0, SEEK_CUR); in Create()
1172 virtual bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
1248 const off64_t offset = (compressed_length - remaining_bytes); in Inflate()
1324 off64_t offset = entry->offset + count; in CopyEntryToWriter()
1418 off64_t GetFileDescriptorOffset(const ZipArchiveHandle archive) { in GetFileDescriptorOffset()
1467 off64_t MappedZipFile::GetFileOffset() const { in GetFileOffset()
1471 off64_t MappedZipFile::GetFileLength() const { in GetFileLength()
1491 bool MappedZipFile::ReadAtOffset(uint8_t* buf, size_t len, off64_t off) const { in ReadAtOffset()
1498 off64_t read_offset; in ReadAtOffset()
1505 off64_t read_end; in ReadAtOffset()
1506 if (len > std::numeric_limits<off64_t>::max() || in ReadAtOffset()
1507 __builtin_add_overflow(off, static_cast<off64_t>(len), &read_end)) { in ReadAtOffset()
1509 static_cast<off64_t>(len), off); in ReadAtOffset()
1515 PRId64, static_cast<off64_t>(len), data_length_, off); in ReadAtOffset()
1535 void CentralDirectory::Initialize(const void* map_base_ptr, off64_t cd_start_offset, in Initialize()
1541 bool ZipArchive::InitializeCentralDirectory(off64_t cd_start_offset, size_t cd_size) { in InitializeCentralDirectory()
1559 if (static_cast<off64_t>(cd_start_offset) + static_cast<off64_t>(cd_size) > in InitializeCentralDirectory()