Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
zip_uint32_t | _zip_string_crc32 (const zip_string_t *s) |
int | _zip_string_equal (const zip_string_t *a, const zip_string_t *b) |
void | _zip_string_free (zip_string_t *s) |
const zip_uint8_t * | _zip_string_get (zip_string_t *string, zip_uint32_t *lenp, zip_flags_t flags, zip_error_t *error) |
zip_uint16_t | _zip_string_length (const zip_string_t *s) |
zip_string_t * | _zip_string_new (const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, zip_error_t *error) |
int | _zip_string_write (zip_t *za, const zip_string_t *s) |
zip_uint32_t _zip_string_crc32 | ( | const zip_string_t * | s | ) |
Definition at line 42 of file zip_string.c.
References crc32(), L, NULL, s, and Z_NULL.
Referenced by _zip_dirent_process_ef_utf_8(), and _zip_ef_utf8().
int _zip_string_equal | ( | const zip_string_t * | a, |
const zip_string_t * | b | ||
) |
Definition at line 55 of file zip_string.c.
Referenced by _zip_headercomp(), _zip_set_name(), zip_file_set_comment(), and zip_set_archive_comment().
void _zip_string_free | ( | zip_string_t * | s | ) |
Definition at line 69 of file zip_string.c.
References free(), NULL, and s.
Referenced by _zip_cdir_free(), _zip_dirent_finalize(), _zip_dirent_process_ef_utf_8(), _zip_name_locate(), _zip_set_name(), _zip_string_new(), zip_discard(), zip_file_set_comment(), zip_set_archive_comment(), and zip_unchange_archive().
const zip_uint8_t* _zip_string_get | ( | zip_string_t * | string, |
zip_uint32_t * | lenp, | ||
zip_flags_t | flags, | ||
zip_error_t * | error | ||
) |
Definition at line 80 of file zip_string.c.
References _zip_cp437_to_utf8(), _zip_guess_encoding(), zip_string::converted, zip_string::converted_length, zip_string::encoding, error(), flags, zip_string::length, NULL, zip_string::raw, ZIP_ENCODING_ASCII, ZIP_ENCODING_CP437, ZIP_ENCODING_UNKNOWN, ZIP_ENCODING_UTF8_KNOWN, ZIP_FL_ENC_RAW, and ZIP_FL_ENC_STRICT.
Referenced by _zip_ef_utf8(), _zip_get_name(), _zip_name_locate(), _zip_open(), _zip_set_name(), zip_file_get_comment(), and zip_get_archive_comment().
zip_uint16_t _zip_string_length | ( | const zip_string_t * | s | ) |
Definition at line 112 of file zip_string.c.
Referenced by _zip_checkcons(), _zip_dirent_apply_attributes(), and _zip_dirent_write().
zip_string_t* _zip_string_new | ( | const zip_uint8_t * | raw, |
zip_uint16_t | length, | ||
zip_flags_t | flags, | ||
zip_error_t * | error | ||
) |
Definition at line 121 of file zip_string.c.
References _zip_guess_encoding(), _zip_string_free(), error(), flags, free(), length, malloc(), memcpy(), NULL, s, ZIP_ENCODING_CP437, ZIP_ENCODING_ERROR, ZIP_ENCODING_UNKNOWN, ZIP_ENCODING_UTF8_KNOWN, ZIP_ER_INVAL, ZIP_ER_MEMORY, zip_error_set(), ZIP_FL_ENC_CP437, ZIP_FL_ENC_GUESS, ZIP_FL_ENC_UTF_8, and ZIP_FL_ENCODING_ALL.
Referenced by _zip_dirent_process_ef_utf_8(), _zip_name_locate(), _zip_read_cdir(), _zip_read_string(), _zip_set_name(), zip_file_set_comment(), and zip_set_archive_comment().
int _zip_string_write | ( | zip_t * | za, |
const zip_string_t * | s | ||
) |
Definition at line 173 of file zip_string.c.
References _zip_write(), NULL, s, and za.
Referenced by _zip_dirent_write().