Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | context |
struct | implementation |
Functions | |
static zip_source_t * | compression_source_new (zip_t *za, zip_source_t *src, zip_int32_t method, bool compress, int compression_flags) |
static zip_int64_t | compress_callback (zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t) |
static void | context_free (struct context *ctx) |
static struct context * | context_new (zip_int32_t method, bool compress, int compression_flags, zip_compression_algorithm_t *algorithm) |
static zip_int64_t | compress_read (zip_source_t *, struct context *, void *, zip_uint64_t) |
zip_compression_algorithm_t * | _zip_get_compression_algorithm (zip_int32_t method, bool compress) |
ZIP_EXTERN int | zip_compression_method_supported (zip_int32_t method, int compress) |
zip_source_t * | zip_source_compress (zip_t *za, zip_source_t *src, zip_int32_t method, int compression_flags) |
zip_source_t * | zip_source_decompress (zip_t *za, zip_source_t *src, zip_int32_t method) |
Variables | |
static struct implementation | implementations [] |
static size_t | implementations_size = sizeof(implementations) / sizeof(implementations[0]) |
zip_compression_algorithm_t* _zip_get_compression_algorithm | ( | zip_int32_t | method, |
bool | compress | ||
) |
Definition at line 93 of file zip_source_compress.c.
References implementation::compress, compress(), implementation::decompress, i, implementations, implementations_size, context::method, NULL, and ZIP_CM_ACTUAL.
Referenced by add_data(), compression_source_new(), and zip_compression_method_supported().
|
static |
Definition at line 305 of file zip_source_compress.c.
References _zip_error_set_from_source(), cmd, zip_stat::comp_method, zip_stat::comp_size, ctx::compress, compress_read(), context_free(), ctx::end_of_input, ctx::error, zip_file_attributes::general_purpose_bit_flags, zip_file_attributes::general_purpose_bit_mask, len, ctx::method, zip_stat::size, src, context::ud, zip_stat::valid, zip_file_attributes::valid, zip_file_attributes::version_needed, ZIP_CM_ACTUAL, ZIP_CM_STORE, ZIP_ER_INTERNAL, ZIP_ER_INVAL, zip_error_set(), zip_error_to_data(), ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS, ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS_ALLOWED_MASK, ZIP_FILE_ATTRIBUTES_VERSION_NEEDED, ZIP_SOURCE_CLOSE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, ZIP_SOURCE_GET_FILE_ATTRIBUTES, zip_source_get_file_attributes(), zip_source_make_command_bitmap(), ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, ZIP_SOURCE_STAT, zip_source_stat(), ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_SUPPORTS_READABLE, ZIP_STAT_COMP_METHOD, ZIP_STAT_COMP_SIZE, and ZIP_STAT_SIZE.
Referenced by compression_source_new().
|
static |
Definition at line 200 of file zip_source_compress.c.
References _zip_error_set_from_source(), test_evm::end, ctx::end_of_input, ctx::error, len, memcpy(), n, src, ZIP_COMPRESSION_END, ZIP_COMPRESSION_ERROR, ZIP_COMPRESSION_NEED_DATA, ZIP_COMPRESSION_OK, ZIP_ER_INTERNAL, ZIP_ER_OK, zip_error_code_zip(), zip_error_set(), and zip_source_read().
Referenced by compress_callback().
|
static |
Definition at line 131 of file zip_source_compress.c.
References _zip_get_compression_algorithm(), context::algorithm, compress(), compress_callback(), context_free(), context_new(), zip::error, context::method, NULL, s2, src, za, ZIP_ER_COMPNOTSUPP, ZIP_ER_INVAL, ZIP_ER_MEMORY, zip_error_set(), and zip_source_layered().
Referenced by zip_source_compress(), and zip_source_decompress().
|
static |
Definition at line 187 of file zip_source_compress.c.
References ctx::error, free(), NULL, and zip_error_fini().
Referenced by compress_callback(), and compression_source_new().
|
static |
Definition at line 161 of file zip_source_compress.c.
References context::algorithm, ctx::compress, compress(), ctx::end_of_input, ctx::error, free(), malloc(), ctx::method, context::method, NULL, ZIP_CM_ACTUAL, ZIP_CM_IS_DEFAULT, zip_error_fini(), and zip_error_init().
Referenced by compression_source_new().
ZIP_EXTERN int zip_compression_method_supported | ( | zip_int32_t | method, |
int | compress | ||
) |
Definition at line 112 of file zip_source_compress.c.
References _zip_get_compression_algorithm(), compress(), context::method, NULL, and ZIP_CM_STORE.
Referenced by usage(), and zip_set_file_compression().
zip_source_t* zip_source_compress | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_int32_t | method, | ||
int | compression_flags | ||
) |
Definition at line 120 of file zip_source_compress.c.
References compression_source_new(), context::method, src, and za.
Referenced by add_data().
zip_source_t* zip_source_decompress | ( | zip_t * | za, |
zip_source_t * | src, | ||
zip_int32_t | method | ||
) |
Definition at line 125 of file zip_source_compress.c.
References compression_source_new(), context::method, src, and za.
Referenced by _zip_source_zip_new(), and add_data().
|
static |
Definition at line 1 of file zip_source_compress.c.
Referenced by _zip_get_compression_algorithm().
|
static |
Definition at line 84 of file zip_source_compress.c.
Referenced by _zip_get_compression_algorithm().