Home
last modified time | relevance | path

Searched refs:zip_uint8_t (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.3/ext/zip/lib/
H A Dzip_buffer.c39 zip_uint8_t *
68 zip_uint8_t *
71 zip_uint8_t *data; in _zip_buffer_get()
124 zip_uint8_t
229 data[0] = (zip_uint8_t)(i & 0xff); in _zip_buffer_put_16()
230 data[1] = (zip_uint8_t)((i >> 8) & 0xff); in _zip_buffer_put_16()
245 data[0] = (zip_uint8_t)(i & 0xff); in _zip_buffer_put_32()
246 data[1] = (zip_uint8_t)((i >> 8) & 0xff); in _zip_buffer_put_32()
247 data[2] = (zip_uint8_t)((i >> 16) & 0xff); in _zip_buffer_put_32()
263 data[0] = (zip_uint8_t)(i & 0xff); in _zip_buffer_put_64()
[all …]
H A Dzip_utf-8.c120 const zip_uint8_t *name; in _zip_guess_encoding()
192 _zip_unicode_to_utf8(zip_uint32_t codepoint, zip_uint8_t *buf) in _zip_unicode_to_utf8()
199 buf[0] = (zip_uint8_t)(UTF_8_LEN_2_MATCH | ((codepoint >> 6) & 0x1f)); in _zip_unicode_to_utf8()
200 buf[1] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()
204 buf[0] = (zip_uint8_t)(UTF_8_LEN_3_MATCH | ((codepoint >> 12) & 0x0f)); in _zip_unicode_to_utf8()
206 buf[2] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()
212 buf[3] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()
217 zip_uint8_t *
221 zip_uint8_t *cp437buf = (zip_uint8_t *)_cp437buf; in _zip_cp437_to_utf8()
222 zip_uint8_t *utf8buf; in _zip_cp437_to_utf8()
[all …]
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()
63 zip_uint8_t *
66 zip_uint8_t *r; in _zip_read_data()
72 r = (zip_uint8_t *)malloc(length + (nulp ? 1 : 0)); in _zip_read_data()
79 zip_uint8_t *data = _zip_buffer_get(buffer, length); in _zip_read_data()
96 zip_uint8_t *o; in _zip_read_data()
111 zip_uint8_t *raw; in _zip_read_string()
H A Dzipint.h378 zip_uint8_t *data;
422 zip_uint8_t *raw; /* raw string */
425 zip_uint8_t *converted; /* autoconverted string */
436 zip_uint8_t *data;
465 zip_uint8_t *_zip_buffer_data(zip_buffer_t *buffer);
468 zip_uint8_t *_zip_buffer_get(zip_buffer_t *buffer, zip_uint64_t length);
472 zip_uint8_t _zip_buffer_get_8(zip_buffer_t *buffer);
474 zip_buffer_t *_zip_buffer_new(zip_uint8_t *data, zip_uint64_t size);
482 int _zip_buffer_put_8(zip_buffer_t *buffer, zip_uint8_t i);
523 const zip_uint8_t *_zip_extract_extra_field_by_id(zip_error_t *, zip_uint16_t, int, const zip_uint8…
[all …]
H A Dzip_source_pkware.c51 static void decrypt(struct trad_pkware *, zip_uint8_t *,
52 const zip_uint8_t *, zip_uint64_t, int);
85 decrypt(ctx, NULL, (const zip_uint8_t *)password, strlen(password), 1); in zip_source_pkware()
97 decrypt(struct trad_pkware *ctx, zip_uint8_t *out, const zip_uint8_t *in, in decrypt()
130 zip_uint8_t header[HEADERLEN]; in decrypt_header()
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_file_set_external_attributes.c37 zip_file_set_external_attributes(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t opsys,… in zip_file_set_external_attributes()
41 zip_uint8_t unchanged_opsys; in zip_file_set_external_attributes()
54 …unchanged_opsys = (e->orig ? (zip_uint8_t)(e->orig->version_madeby>>8) : (zip_uint8_t)ZIP_OPSYS_DE… in zip_file_set_external_attributes()
H A Dzip_file_get_external_attributes.c37 zip_file_get_external_attributes(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t *opsys… in zip_file_get_external_attributes()
45 *opsys = (zip_uint8_t)((de->version_madeby >> 8) & 0xff); in zip_file_get_external_attributes()
H A Dzip_unchange.c79 if (_zip_hash_add(za->names, (const zip_uint8_t *)orig_name, idx, 0, &za->error) == false) { in _zip_unchange()
83 if (_zip_hash_delete(za->names, (const zip_uint8_t *)changed_name, &za->error) == false) { in _zip_unchange()
84 _zip_hash_delete(za->names, (const zip_uint8_t *)orig_name, NULL); in _zip_unchange()
H A Dzip_extra_field.c119 const zip_uint8_t *
122 static const zip_uint8_t empty[1] = { '\0' }; in _zip_ef_get_by_id()
184 _zip_ef_new(zip_uint16_t id, zip_uint16_t size, const zip_uint8_t *data, zip_flags_t flags) in _zip_ef_new()
196 if ((ef->data=(zip_uint8_t *)_zip_memdup(data, size, NULL)) == NULL) { in _zip_ef_new()
209 _zip_ef_parse(const zip_uint8_t *data, zip_uint16_t len, zip_flags_t flags, zip_extra_field_t **ef_… in _zip_ef_parse()
214 if ((buffer = _zip_buffer_new((zip_uint8_t *)data, len)) == NULL) { in _zip_ef_parse()
223 zip_uint8_t *ef_data; in _zip_ef_parse()
255 zip_uint8_t *garbage; in _zip_ef_parse()
326 zip_uint8_t b[4]; in _zip_ef_write()
406 zip_uint8_t *ef_raw; in _zip_read_local_ef()
H A Dzip_hash.c39 const zip_uint8_t *name;
105 _hash_string(const zip_uint8_t *name, zip_uint16_t size) in _hash_string()
114 value = (zip_uint16_t)(((value * HASH_MULTIPLIER) + (zip_uint8_t)*name) % size); in _hash_string()
123 _zip_hash_add(zip_hash_t *hash, const zip_uint8_t *name, zip_uint64_t index, zip_flags_t flags, zip… in _zip_hash_add()
167 _zip_hash_delete(zip_hash_t *hash, const zip_uint8_t *name, zip_error_t *error) in _zip_hash_delete()
206 _zip_hash_lookup(zip_hash_t *hash, const zip_uint8_t *name, zip_flags_t flags, zip_error_t *error) in _zip_hash_lookup()
H A Dzipconf.h60 typedef uint8_t zip_uint8_t; typedef
62 typedef unsigned __int8 zip_uint8_t; typedef
64 typedef unsigned char zip_uint8_t; typedef
H A Dzip_string.c82 const zip_uint8_t *
85 static const zip_uint8_t empty[1] = ""; in _zip_string_get()
129 _zip_string_new(const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, zip_error_t *error) in _zip_string_new()
157 if ((s->raw=(zip_uint8_t *)malloc((size_t)(length+1))) == NULL) { in _zip_string_new()
H A Dzip_source_buffer.c46 zip_uint8_t **fragments; /* pointers to fragments */
67 static zip_int64_t buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length);
69 static zip_int64_t buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip…
299 buffer->fragments[0] = (zip_uint8_t *)data; in buffer_new_read()
329 buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length) in buffer_read()
375 buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip_error_t *error) in buffer_write()
378 zip_uint8_t **fragments; in buffer_write()
H A Dzip_get_archive_comment.c45 const zip_uint8_t *str; in zip_get_archive_comment()
H A Dzip_file_get_comment.c44 const zip_uint8_t *str; in zip_file_get_comment()
H A Dzip_delete.c57 if (!_zip_hash_delete(za->names, (const zip_uint8_t *)name, &za->error)) { in zip_delete()
H A Dzip_get_name.c51 const zip_uint8_t *str; in _zip_get_name()
H A Dzip_dirent.c99 zip_uint8_t buf[EOCDLEN + EOCD64LEN + EOCD64LOCLEN]; in _zip_cdir_write()
300 zip_uint8_t buf[CDENTRYSIZE]; in _zip_dirent_read()
418 zip_uint8_t *ef = _zip_read_data(buffer, src, ef_len, 0, error); in _zip_dirent_read()
465 …const zip_uint8_t *ef = _zip_ef_get_by_id(zde->extra_fields, &got_len, ZIP_EF_ZIP64, 0, local ? ZI… in _zip_dirent_read()
474 if ((ef_buffer = _zip_buffer_new((zip_uint8_t *)ef, got_len)) == NULL) { in _zip_dirent_read()
539 const zip_uint8_t *ef = _zip_ef_get_by_id(de->extra_fields, &ef_len, id, 0, ZIP_EF_BOTH, NULL); in _zip_dirent_process_ef_utf_8()
545 if ((buffer = _zip_buffer_new((zip_uint8_t *)ef, ef_len)) == NULL) { in _zip_dirent_process_ef_utf_8()
574 zip_uint8_t b[6]; in _zip_dirent_size()
623 zip_uint8_t buf[CDENTRYSIZE]; in _zip_dirent_write()
657 zip_uint8_t ef_zip64[EFZIP64SIZE]; in _zip_dirent_write()
[all …]
H A Dzip_set_name.c48 const zip_uint8_t *old_name, *new_name; in _zip_set_name()
63 …if ((str=_zip_string_new((const zip_uint8_t *)name, (zip_uint16_t)strlen(name), flags, &za->error)… in _zip_set_name()
H A Dzip_extra_field_api.c104 ZIP_EXTERN const zip_uint8_t *
107 static const zip_uint8_t empty[1] = { '\0' }; in zip_file_extra_field_get()
150 ZIP_EXTERN const zip_uint8_t *
228 … *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, const zip_uint8_t *data, zip_uint… in zip_file_extra_field_set()
H A Dzip_set_archive_comment.c56 …if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, ZIP_FL_ENC_GUESS, &za->error)) == NUL… in zip_set_archive_comment()
H A Dzip.h345 …tra_field_set(zip_t *, zip_uint64_t, zip_uint16_t, zip_uint16_t, const zip_uint8_t *, zip_uint16_t…
348 ZIP_EXTERN const zip_uint8_t *zip_file_extra_field_get(zip_t *, zip_uint64_t, zip_uint16_t, zip_uin…
349 ZIP_EXTERN const zip_uint8_t *zip_file_extra_field_get_by_id(zip_t *, zip_uint64_t, zip_uint16_t, z…
352 ZIP_EXTERN int zip_file_get_external_attributes(zip_t *, zip_uint64_t, zip_flags_t, zip_uint8_t *, …
356 ZIP_EXTERN int zip_file_set_external_attributes(zip_t *, zip_uint64_t, zip_flags_t, zip_uint8_t, zi…
H A Dzip_name_locate.c92 return _zip_hash_lookup(za->names, (const zip_uint8_t *)fname, flags, error); in _zip_name_locate()
H A Dzip_file_set_comment.c62 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL) in zip_file_set_comment()
H A Dzip_close.c397 zip_uint8_t buf[BUFSIZE]; in copy_data()
420 zip_uint8_t buf[BUFSIZE]; in copy_source()

Completed in 39 milliseconds

12