Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
int | _zip_read (zip_source_t *src, zip_uint8_t *b, zip_uint64_t length, zip_error_t *error) |
zip_uint8_t * | _zip_read_data (zip_buffer_t *buffer, zip_source_t *src, size_t length, bool nulp, zip_error_t *error) |
zip_string_t * | _zip_read_string (zip_buffer_t *buffer, zip_source_t *src, zip_uint16_t len, bool nulp, zip_error_t *error) |
int | _zip_write (zip_t *za, const void *data, zip_uint64_t length) |
int _zip_read | ( | zip_source_t * | src, |
zip_uint8_t * | b, | ||
zip_uint64_t | length, | ||
zip_error_t * | error | ||
) |
Definition at line 40 of file zip_io_util.c.
References _zip_error_set_from_source(), b, error(), length, n, src, ZIP_ER_EOF, ZIP_ER_INTERNAL, zip_error_set(), ZIP_INT64_MAX, and zip_source_read().
Referenced by _zip_buffer_new_from_source(), _zip_read_data(), and copy_data().
zip_uint8_t* _zip_read_data | ( | zip_buffer_t * | buffer, |
zip_source_t * | src, | ||
size_t | length, | ||
bool | nulp, | ||
zip_error_t * | error | ||
) |
Definition at line 63 of file zip_io_util.c.
References _zip_buffer_get(), _zip_read(), error(), free(), length, malloc(), memcpy(), NULL, r, src, ZIP_ER_MEMORY, and zip_error_set().
Referenced by _zip_dirent_read(), _zip_read_local_ef(), and _zip_read_string().
zip_string_t* _zip_read_string | ( | zip_buffer_t * | buffer, |
zip_source_t * | src, | ||
zip_uint16_t | len, | ||
bool | nulp, | ||
zip_error_t * | error | ||
) |
Definition at line 107 of file zip_io_util.c.
References _zip_read_data(), _zip_string_new(), error(), free(), len, NULL, s, src, and ZIP_FL_ENC_GUESS.
Referenced by _zip_dirent_read().
int _zip_write | ( | zip_t * | za, |
const void * | data, | ||
zip_uint64_t | length | ||
) |
Definition at line 121 of file zip_io_util.c.
References _zip_error_set_from_source(), EINTR, zip::error, length, n, zip::src, za, ZIP_ER_WRITE, zip_error_set(), and zip_source_write().
Referenced by _zip_cdir_write(), _zip_dirent_write(), _zip_ef_write(), _zip_string_write(), copy_data(), copy_source(), and write_data_descriptor().