Lines Matching refs:file_hdr
12 const MEMZIP_FILE_HDR *file_hdr = (const MEMZIP_FILE_HDR *)memzip_data; in memzip_find_file_header() local
20 while (file_hdr->signature == MEMZIP_FILE_HEADER_SIGNATURE) { in memzip_find_file_header()
21 const char *file_hdr_filename = (const char *)&file_hdr[1]; in memzip_find_file_header()
23 mem_data += file_hdr->filename_len; in memzip_find_file_header()
24 mem_data += file_hdr->extra_len; in memzip_find_file_header()
25 if (!strncmp(file_hdr_filename, filename, file_hdr->filename_len)) { in memzip_find_file_header()
27 return file_hdr; in memzip_find_file_header()
29 mem_data += file_hdr->uncompressed_size; in memzip_find_file_header()
30 file_hdr = (const MEMZIP_FILE_HDR *)mem_data; in memzip_find_file_header()
36 const MEMZIP_FILE_HDR *file_hdr = (const MEMZIP_FILE_HDR *)memzip_data; in memzip_is_dir() local
50 while (file_hdr->signature == MEMZIP_FILE_HEADER_SIGNATURE) { in memzip_is_dir()
51 const char *file_hdr_filename = (const char *)&file_hdr[1]; in memzip_is_dir()
52 if (filename_len < file_hdr->filename_len && in memzip_is_dir()
59 mem_data += file_hdr->filename_len; in memzip_is_dir()
60 mem_data += file_hdr->extra_len; in memzip_is_dir()
61 mem_data += file_hdr->uncompressed_size; in memzip_is_dir()
62 file_hdr = (const MEMZIP_FILE_HDR *)mem_data; in memzip_is_dir()
70 const MEMZIP_FILE_HDR *file_hdr = memzip_find_file_header(filename); in memzip_locate() local
71 if (file_hdr == NULL) { in memzip_locate()
74 if (file_hdr->compression_method != 0) { in memzip_locate()
79 mem_data = (uint8_t *)&file_hdr[1]; in memzip_locate()
80 mem_data += file_hdr->filename_len; in memzip_locate()
81 mem_data += file_hdr->extra_len; in memzip_locate()
84 *len = file_hdr->uncompressed_size; in memzip_locate()
89 const MEMZIP_FILE_HDR *file_hdr = memzip_find_file_header(path); in memzip_stat() local
90 if (file_hdr == NULL) { in memzip_stat()
100 info->file_size = file_hdr->uncompressed_size; in memzip_stat()
101 info->last_mod_date = file_hdr->last_mod_date; in memzip_stat()
102 info->last_mod_time = file_hdr->last_mod_time; in memzip_stat()