Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | window |
Functions | |
static zip_int64_t | window_read (zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t) |
ZIP_EXTERN zip_source_t * | zip_source_window_create (zip_source_t *src, zip_uint64_t start, zip_int64_t len, zip_error_t *error) |
zip_source_t * | _zip_source_window_new (zip_source_t *src, zip_uint64_t start, zip_int64_t length, zip_stat_t *st, zip_file_attributes_t *attributes, zip_t *source_archive, zip_uint64_t source_index, zip_error_t *error) |
int | _zip_source_set_source_archive (zip_source_t *src, zip_t *za) |
void | _zip_source_invalidate (zip_source_t *src) |
void | _zip_deregister_source (zip_t *za, zip_source_t *src) |
int | _zip_register_source (zip_t *za, zip_source_t *src) |
void _zip_deregister_source | ( | zip_t * | za, |
zip_source_t * | src | ||
) |
Definition at line 306 of file zip_source_window.c.
References i, zip::nopen_source, zip::open_source, src, and za.
Referenced by zip_source_free().
int _zip_register_source | ( | zip_t * | za, |
zip_source_t * | src | ||
) |
Definition at line 320 of file zip_source_window.c.
References zip::error, n, zip::nopen_source, zip::nopen_source_alloc, NULL, zip::open_source, realloc(), src, za, ZIP_ER_MEMORY, and zip_error_set().
Referenced by _zip_source_set_source_archive().
void _zip_source_invalidate | ( | zip_source_t * | src | ) |
Definition at line 129 of file zip_source_window.c.
References src, ZIP_ER_OK, ZIP_ER_ZIPCLOSED, zip_error_code_zip(), and zip_error_set().
Referenced by zip_discard().
int _zip_source_set_source_archive | ( | zip_source_t * | src, |
zip_t * | za | ||
) |
Definition at line 121 of file zip_source_window.c.
References _zip_register_source(), src, and za.
Referenced by _zip_source_zip_new().
zip_source_t* _zip_source_window_new | ( | zip_source_t * | src, |
zip_uint64_t | start, | ||
zip_int64_t | length, | ||
zip_stat_t * | st, | ||
zip_file_attributes_t * | attributes, | ||
zip_t * | source_archive, | ||
zip_uint64_t | source_index, | ||
zip_error_t * | error | ||
) |
Definition at line 68 of file zip_source_window.c.
References _zip_stat_merge(), window::attributes, ctx::error, error(), free(), length, malloc(), memcpy(), NULL, window::source_archive, window::source_index, src, start, window_read(), ZIP_ER_INVAL, ZIP_ER_MEMORY, zip_error_init(), zip_error_set(), zip_file_attributes_init(), ZIP_SOURCE_GET_FILE_ATTRIBUTES, zip_source_layered_create(), zip_source_make_command_bitmap(), ZIP_SOURCE_MAKE_COMMAND_BITMASK, ZIP_SOURCE_SEEK, ZIP_SOURCE_SUPPORTS, zip_source_supports(), ZIP_SOURCE_SUPPORTS_SEEKABLE, ZIP_SOURCE_TELL, and zip_stat_init().
Referenced by _zip_source_zip_new(), add_data(), and zip_source_window_create().
|
static |
Definition at line 139 of file zip_source_window.c.
References _zip_error_set_from_source(), _zip_file_get_offset(), _zip_stat_merge(), args, b, BUFSIZE, byte_array_fini, byte_array_init, cmd, DEFINE_BYTE_ARRAY, test_evm::end, ctx::error, free(), i, len, MAKE_DETAIL_WITH_INDEX, memcpy(), n, NULL, SEEK_END, SEEK_SET, src, start, ZIP_ER_DETAIL_CDIR_ENTRY_INVALID, ZIP_ER_EOF, ZIP_ER_INCONS, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_OPNOTSUPP, zip_error_set(), zip_error_to_data(), ZIP_SOURCE_CLOSE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, ZIP_SOURCE_GET_ARGS, ZIP_SOURCE_GET_FILE_ATTRIBUTES, ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, zip_source_read(), ZIP_SOURCE_SEEK, zip_source_seek(), zip_source_seek_compute_offset(), ZIP_SOURCE_STAT, ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, and zip_source_tell().
Referenced by _zip_source_window_new().
ZIP_EXTERN zip_source_t* zip_source_window_create | ( | zip_source_t * | src, |
zip_uint64_t | start, | ||
zip_int64_t | len, | ||
zip_error_t * | error | ||
) |
Definition at line 62 of file zip_source_window.c.
References _zip_source_window_new(), error(), len, NULL, src, and start.
Referenced by _zip_source_zip_new().