Lines Matching refs:idx
39 zip_file_replace(zip_t *za, zip_uint64_t idx, zip_source_t *source, zip_flags_t flags) in zip_file_replace() argument
41 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
46 if (_zip_file_replace(za, idx, NULL, source, flags) == -1) in zip_file_replace()
57 _zip_file_replace(zip_t *za, zip_uint64_t idx, const char *name, zip_source_t *source, zip_flags_t … in _zip_file_replace() argument
67 if (idx == ZIP_UINT64_MAX) { in _zip_file_replace()
78 idx = (zip_uint64_t)i; in _zip_file_replace()
81 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
83 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
91 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
93 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
94 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
95 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
101 za->entry[idx].changes->comp_method = ZIP_CM_REPLACED_DEFAULT; in _zip_file_replace()
102 za->entry[idx].changes->changed |= ZIP_DIRENT_COMP_METHOD; in _zip_file_replace()
105 za->entry[idx].source = source; in _zip_file_replace()
107 return (zip_int64_t)idx; in _zip_file_replace()