Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dzipimport.py361 header_position = fp.tell()
392 header_position = file_size - len(data) + pos
396 if header_position < header_size:
398 if header_position < header_offset:
400 header_position -= header_size
401 arc_offset = header_position - header_offset
409 fp.seek(header_position)
/external/python/cpython2/Modules/
Dzipimport.c712 unsigned long file_offset, header_position; in read_directory() local
738 header_position = (unsigned long)ftell(fp); in read_directory()
739 if (header_position == (unsigned long)-1) { in read_directory()
742 assert(header_position <= (unsigned long)LONG_MAX); in read_directory()
754 if (header_position < header_size) { in read_directory()
758 if (header_position < header_offset) { in read_directory()
762 if (header_position - header_size < header_offset) { in read_directory()
766 header_position -= header_size; in read_directory()
767 arc_offset = header_position - header_offset; in read_directory()
779 if (fseek(fp, (long)header_position, 0) == -1) { in read_directory()