Lines Matching refs:pFilename
2091 static FILE *mz_fopen(const char *pFilename, const char *pMode) in mz_fopen() argument
2094 fopen_s(&pFile, pFilename, pMode); in mz_fopen()
2299 static mz_bool mz_zip_get_file_modified_time(const char *pFilename, mz_uint16 *pDOS_time, mz_uint16… in mz_zip_get_file_modified_time() argument
2302 (void)pFilename; *pDOS_date = *pDOS_time = 0; in mz_zip_get_file_modified_time()
2306 if (MZ_FILE_STAT(pFilename, &file_stat) != 0) in mz_zip_get_file_modified_time()
2314 static mz_bool mz_zip_set_file_times(const char *pFilename, time_t access_time, time_t modified_tim… in mz_zip_set_file_times() argument
2317 return !utime(pFilename, &t); in mz_zip_set_file_times()
2561 mz_bool mz_zip_reader_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags) in mz_zip_reader_init_file() argument
2564 MZ_FILE *pFile = MZ_FOPEN(pFilename, "rb"); in mz_zip_reader_init_file()
2673 mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_ui… in mz_zip_reader_get_filename() argument
2677 if (!p) { if (filename_buf_size) pFilename[0] = '\0'; return 0; } in mz_zip_reader_get_filename()
2682 memcpy(pFilename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n); in mz_zip_reader_get_filename()
2683 pFilename[n] = '\0'; in mz_zip_reader_get_filename()
2715 static int mz_zip_reader_locate_file_binary_search(mz_zip_archive *pZip, const char *pFilename) in mz_zip_reader_locate_file_binary_search() argument
2722 const mz_uint filename_len = (mz_uint)strlen(pFilename); in mz_zip_reader_locate_file_binary_search()
2726 …p_reader_filename_compare(pCentral_dir, pCentral_dir_offsets, file_index, pFilename, filename_len); in mz_zip_reader_locate_file_binary_search()
2750 const char *pFilename = (const char *)pHeader + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; in mz_zip_reader_locate_file() local
2756 const char *pFile_comment = pFilename + filename_len + file_extra_len; in mz_zip_reader_locate_file()
2765 if ((pFilename[ofs] == '/') || (pFilename[ofs] == '\\') || (pFilename[ofs] == ':')) in mz_zip_reader_locate_file()
2769 pFilename += ofs; filename_len -= ofs; in mz_zip_reader_locate_file()
2771 …if ((filename_len == name_len) && (mz_zip_reader_string_equal(pName, pFilename, filename_len, flag… in mz_zip_reader_locate_file()
2904 mz_bool mz_zip_reader_extract_file_to_mem_no_alloc(mz_zip_archive *pZip, const char *pFilename, voi… in mz_zip_reader_extract_file_to_mem_no_alloc() argument
2906 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_mem_no_alloc()
2917 mz_bool mz_zip_reader_extract_file_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, … in mz_zip_reader_extract_file_to_mem() argument
2919 …return mz_zip_reader_extract_file_to_mem_no_alloc(pZip, pFilename, pBuf, buf_size, flags, NULL, 0); in mz_zip_reader_extract_file_to_mem()
2956 void *mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize… in mz_zip_reader_extract_file_to_heap() argument
2958 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_heap()
3130 mz_bool mz_zip_reader_extract_file_to_callback(mz_zip_archive *pZip, const char *pFilename, mz_file… in mz_zip_reader_extract_file_to_callback() argument
3132 int file_index = mz_zip_reader_locate_file(pZip, pFilename, NULL, flags); in mz_zip_reader_extract_file_to_callback()
3293 mz_bool mz_zip_writer_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_rese… in mz_zip_writer_init_file() argument
3300 if (NULL == (pFile = MZ_FOPEN(pFilename, "wb"))) in mz_zip_writer_init_file()
3324 mz_bool mz_zip_writer_init_from_reader(mz_zip_archive *pZip, const char *pFilename) in mz_zip_writer_init_from_reader() argument
3338 pFilename; return MZ_FALSE; in mz_zip_writer_init_from_reader()
3343 if (!pFilename) in mz_zip_writer_init_from_reader()
3346 if (NULL == (pState->m_pFile = MZ_FREOPEN(pFilename, "r+b", pState->m_pFile))) in mz_zip_writer_init_from_reader()
3435 static mz_bool mz_zip_writer_add_to_central_dir(mz_zip_archive *pZip, const char *pFilename, mz_uin… in mz_zip_writer_add_to_central_dir() argument
3450 (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pFilename, filename_size)) || in mz_zip_writer_add_to_central_dir()