Home
last modified time | relevance | path

Searched refs:zip_uint64_t (Results 1 – 25 of 63) sorted by relevance

123

/PHP-7.3/ext/zip/lib/
H A Dzip.h280 zip_uint64_t valid; /* which fields have valid values */
282 zip_uint64_t index; /* index within archive */
283 zip_uint64_t size; /* size of file (uncompressed) */
284 zip_uint64_t comp_size; /* size of file (compressed) */
317 ZIP_EXTERN int zip_error_to_str(char *, zip_uint64_t, int, int);
323 ZIP_EXTERN int zip_delete(zip_t *, zip_uint64_t);
363 ZIP_EXTERN zip_int64_t zip_fread(zip_file_t *, void *, zip_uint64_t);
366 ZIP_EXTERN const char *zip_get_name(zip_t *, zip_uint64_t, zip_flags_t);
395 …P_EXTERN zip_int64_t zip_source_seek_compute_offset(zip_uint64_t, zip_uint64_t, void *, zip_uint64…
409 ZIP_EXTERN zip_source_t *zip_source_zip(zip_t *, zip_t *, zip_uint64_t, zip_flags_t, zip_uint64_t, …
[all …]
H A Dzipint.h240 zip_source_t *zip_source_window(zip_t *, zip_source_t *, zip_uint64_t, zip_uint64_t);
307 zip_uint64_t nentry; /* number of entries */
437 zip_uint64_t size;
438 zip_uint64_t offset;
444 zip_uint64_t idx;
527 zip_uint64_t _zip_file_get_offset(const zip_t *, zip_uint64_t, zip_error_t *);
529 int _zip_filerange_crc(zip_source_t *src, zip_uint64_t offset, zip_uint64_t length, uLong *crcp, zi…
548 int _zip_read_local_ef(zip_t *, zip_uint64_t);
560 …p_source_t *_zip_source_zip_new(zip_t *, zip_t *, zip_uint64_t, zip_flags_t, zip_uint64_t, zip_uin…
571 int _zip_changed(const zip_t *, zip_uint64_t *);
[all …]
H A Dzip_buffer.c69 _zip_buffer_get(zip_buffer_t *buffer, zip_uint64_t length) in _zip_buffer_get()
110 zip_uint64_t
119zip_uint64_t)data[7] << 56) + ((zip_uint64_t)data[6] << 48) + ((zip_uint64_t)data[5] << 40) + ((zi… in _zip_buffer_get_64()
137 zip_uint64_t
145 _zip_buffer_new(zip_uint8_t *data, zip_uint64_t size) in _zip_buffer_new()
192 zip_uint64_t
255 _zip_buffer_put_64(zip_buffer_t *buffer, zip_uint64_t i) in _zip_buffer_put_64()
292 _zip_buffer_set_offset(zip_buffer_t *buffer, zip_uint64_t offset) in _zip_buffer_set_offset()
307 _zip_buffer_skip(zip_buffer_t *buffer, zip_uint64_t length) { in _zip_buffer_skip()
308 zip_uint64_t offset = buffer->offset + length; in _zip_buffer_skip()
[all …]
H A Dzip_source_buffer.c44 zip_uint64_t fragment_size; /* size of each fragment */
49 zip_uint64_t size; /* size of data in bytes */
50 zip_uint64_t offset; /* current offset */
64 static buffer_t *buffer_new(zip_uint64_t fragment_size);
66 static buffer_t *buffer_new_write(zip_uint64_t fragment_size);
248 zip_uint64_t i; in buffer_free()
260 buffer_new(zip_uint64_t fragment_size) in buffer_new()
308 buffer_new_write(zip_uint64_t fragment_size) in buffer_new_write()
331 zip_uint64_t n, i, fragment_offset; in buffer_read()
369 buffer->offset = (zip_uint64_t)new_offset; in buffer_seek()
[all …]
H A Dzip_source_window.c41 zip_uint64_t start;
42 zip_uint64_t end;
43 zip_uint64_t offset;
50 static zip_int64_t window_read(zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t);
54 zip_source_window(zip_t *za, zip_source_t *src, zip_uint64_t start, zip_uint64_t len) in zip_source_window()
61 _zip_source_window_new(zip_source_t *src, zip_uint64_t start, zip_uint64_t length, zip_stat_t *st, … in _zip_source_window_new()
114 window_read(zip_source_t *src, void *_ctx, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in window_read()
118 zip_uint64_t n, i; in window_read()
136 for (n=0; n<ctx->start; n+=(zip_uint64_t)ret) { in window_read()
171 ctx->offset += (zip_uint64_t)ret; in window_read()
[all …]
H A Dzipwin32.h55 zip_uint64_t start; /* start offset of data to read */
56 zip_uint64_t end; /* end offset of data to read, 0 for up to EOF */
57 zip_uint64_t current; /* current offset */
78 zip_source_t *_zip_source_win32_handle_or_name(const void *, void *, zip_uint64_t, zip_int64_t, int…
H A Dzip_source_crc.c45 zip_uint64_t size;
46 zip_uint64_t position; /* current reading position */
47 zip_uint64_t crc_position; /* how far we've computed the CRC */
51 static zip_int64_t crc_read(zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t);
81 crc_read(zip_source_t *src, void *_ctx, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in crc_read()
124 zip_uint64_t i, nn; in crc_read()
126 for (i = ctx->crc_position - ctx->position; i < (zip_uint64_t)n; i += nn) { in crc_read()
127 nn = ZIP_MIN(UINT_MAX, (zip_uint64_t)n-i); in crc_read()
133 ctx->position += (zip_uint64_t)n; in crc_read()
190 ctx->position = (zip_uint64_t)new_position; in crc_read()
H A Dzip_filerange_crc.c42 _zip_filerange_crc(zip_source_t *src, zip_uint64_t start, zip_uint64_t len, uLong *crcp, zip_error_… in _zip_filerange_crc()
61 if ((n = zip_source_read(src, buf, (zip_uint64_t)n)) < 0) { in _zip_filerange_crc()
72 len -= (zip_uint64_t)n; in _zip_filerange_crc()
H A Dzip_add_entry.c45 zip_uint64_t idx; in _zip_add_entry()
49 zip_uint64_t nalloc = za->nentry_alloc; in _zip_add_entry()
50 zip_uint64_t additional_entries = 2 * nalloc; in _zip_add_entry()
51 zip_uint64_t realloc_size; in _zip_add_entry()
H A Dzip_source_zip.c42 zip_source_zip(zip_t *za, zip_t *srcza, zip_uint64_t srcidx, in zip_source_zip()
43 zip_flags_t flags, zip_uint64_t start, zip_int64_t len) in zip_source_zip()
58 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL); in zip_source_zip()
H A Dzip_source_seek.c59 zip_source_seek_compute_offset(zip_uint64_t offset, zip_uint64_t length, void *data, zip_uint64_t d… in zip_source_seek_compute_offset()
86 if (new_offset < 0 || (zip_uint64_t)new_offset > length) { in zip_source_seek_compute_offset()
H A Dzip_file_get_offset.c50 zip_uint64_t
51 _zip_file_get_offset(const zip_t *za, zip_uint64_t idx, zip_error_t *error) in _zip_file_get_offset()
53 zip_uint64_t offset; in _zip_file_get_offset()
H A Dzip_source_filep.c75 zip_uint64_t start; /* start offset of data to read */
76 zip_uint64_t end; /* end offset of data to read, 0 for up to EOF */
77 zip_uint64_t current; /* current offset */
91 zip_source_filep(zip_t *za, FILE *file, zip_uint64_t start, zip_int64_t len) in zip_source_filep()
138 ctx->end = (len < 0 ? 0 : start+(zip_uint64_t)len); in _zip_source_file_or_p()
222 read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in read_file()
226 zip_uint64_t n; in read_file()
375 …if (new_current < 0 || (zip_uint64_t)new_current < ctx->start || (ctx->end != 0 && (zip_uint64_t)n… in read_file()
380 ctx->current = (zip_uint64_t)new_current; in read_file()
435 st->size = (zip_uint64_t)fst.st_size; in read_file()
[all …]
H A Dzip_open.c186 zip_uint64_t len, idx; in _zip_open()
280 zip_uint64_t i, left; in _zip_read_cdir()
319 zip_uint64_t tail_len; in _zip_read_cdir()
371 left = (zip_uint64_t)cd->size; in _zip_read_cdir()
431 zip_uint64_t i; in _zip_checkcons()
432 zip_uint64_t min, max, j; in _zip_checkcons()
446 if (min > (zip_uint64_t)cd->offset) { in _zip_checkcons()
455 if (max > (zip_uint64_t)cd->offset) { in _zip_checkcons()
565 zip_uint64_t buflen; in _zip_find_central_dir()
729 zip_uint64_t offset; in _zip_read_eocd64()
[all …]
H A Dzip_file_replace.c39 zip_file_replace(zip_t *za, zip_uint64_t idx, zip_source_t *source, zip_flags_t flags) 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()
59 zip_uint64_t za_nentry_prev; in _zip_file_replace()
78 idx = (zip_uint64_t)i; in _zip_file_replace()
H A Dzipconf.h108 typedef uint64_t zip_uint64_t; typedef
110 typedef unsigned __int64 zip_uint64_t; typedef
112 typedef unsigned long zip_uint64_t; typedef
114 typedef unsigned long long zip_uint64_t; typedef
H A Dzip_source_pkware.c52 const zip_uint8_t *, zip_uint64_t, int);
55 zip_uint64_t, zip_source_cmd_t);
98 zip_uint64_t len, int update_only) in decrypt()
101 zip_uint64_t i; in decrypt()
165 zip_uint64_t len, zip_source_cmd_t cmd) in pkware_decrypt()
184 … decrypt((struct trad_pkware *)ud, (zip_uint8_t *)data, (zip_uint8_t *)data, (zip_uint64_t)n, 0); in pkware_decrypt()
H A Dzip_source_deflate.c47 zip_uint64_t size;
52 static zip_int64_t compress_read(zip_source_t *, struct deflate *, void *, zip_uint64_t);
53 static zip_int64_t decompress_read(zip_source_t *, struct deflate *, void *, zip_uint64_t);
54 static zip_int64_t deflate_compress(zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t);
55 static zip_int64_t deflate_decompress(zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_…
96 compress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) in compress_read()
100 zip_uint64_t out_offset; in compress_read()
196 decompress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) in decompress_read()
200 zip_uint64_t out_offset; in decompress_read()
278 deflate_compress(zip_source_t *src, void *ud, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in deflate_compress()
[all …]
H A Dzip_unchange.c41 zip_unchange(zip_t *za, zip_uint64_t idx) in zip_unchange()
48 _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange()
65 if (i >= 0 && (zip_uint64_t)i != idx) { in _zip_unchange()
H A Dzip_source_file.c41 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_file()
51 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *erro… in zip_source_file_create()
H A Dzip_get_name.c41 zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags) in zip_get_name()
48 _zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_error_t *error) in _zip_get_name()
H A Dzip_close.c58 static int copy_data(zip_t *, zip_uint64_t);
60 static int write_cdir(zip_t *, const zip_filelist_t *, zip_uint64_t);
66 zip_uint64_t i, j, survivors; in zip_close()
158 de->offset = (zip_uint64_t)off; in zip_close()
182 zip_uint64_t offset; in zip_close()
373 de->comp_size = (zip_uint64_t)(offend - offdata); in add_data()
395 copy_data(zip_t *za, zip_uint64_t len) in copy_data()
431 if (_zip_write(za, buf, (zip_uint64_t)n) < 0) { in copy_source()
449 write_cdir(zip_t *za, const zip_filelist_t *filelist, zip_uint64_t survivors) in write_cdir()
470 _zip_changed(const zip_t *za, zip_uint64_t *survivorsp) in _zip_changed()
[all …]
H A Dzip_source_win32handle.c42 static zip_int64_t _win32_read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd…
45 static int _zip_seek_win32_u(void *h, zip_uint64_t offset, int whence, zip_error_t *error);
51 zip_source_win32handle(zip_t *za, HANDLE h, zip_uint64_t start, zip_int64_t len) in zip_source_win32handle()
61 zip_source_win32handle_create(HANDLE h, zip_uint64_t start, zip_int64_t length, zip_error_t *error) in zip_source_win32handle_create()
100 ctx->end = (len < 0 ? 0 : start + (zip_uint64_t)len); in _zip_source_win32_handle_or_name()
143 _win32_read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in _win32_read_file()
147 zip_uint64_t n; in _win32_read_file()
299 …if (new_current < 0 || (zip_uint64_t)new_current < ctx->start || (ctx->end != 0 && (zip_uint64_t)n… in _win32_read_file()
304 ctx->current = (zip_uint64_t)new_current; in _win32_read_file()
474 _zip_seek_win32_u(HANDLE h, zip_uint64_t offset, int whence, zip_error_t *error) in _zip_seek_win32_u()
[all …]
H A Dzip_extra_field_api.c39 zip_file_extra_field_delete(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_flags_t flags) in zip_file_extra_field_delete()
72 zip_file_extra_field_delete_by_id(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_… in zip_file_extra_field_delete_by_id()
105 zip_file_extra_field_get(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_uint16_t *idp, zip_u… in zip_file_extra_field_get()
151 zip_file_extra_field_get_by_id(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx… in zip_file_extra_field_get_by_id()
172 zip_file_extra_fields_count(zip_t *za, zip_uint64_t idx, zip_flags_t flags) in zip_file_extra_fields_count()
200 zip_file_extra_fields_count_by_id(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_flags_t flag… in zip_file_extra_fields_count_by_id()
228 zip_file_extra_field_set(zip_t *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, cons… in zip_file_extra_field_set()
332 _zip_file_extra_field_prepare_for_change(zip_t *za, zip_uint64_t idx) in _zip_file_extra_field_prepare_for_change()
H A Dzip_io_util.c40 _zip_read(zip_source_t *src, zip_uint8_t *b, zip_uint64_t length, zip_error_t *error) in _zip_read()
124 _zip_write(zip_t *za, const void *data, zip_uint64_t length) in _zip_write()
132 if ((zip_uint64_t)n != length) { in _zip_write()

Completed in 64 milliseconds

123