Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | crc_context |
Functions | |
static zip_int64_t | crc_read (zip_source_t *, void *, void *, zip_uint64_t, zip_source_cmd_t) |
zip_source_t * | zip_source_crc_create (zip_source_t *src, int validate, zip_error_t *error) |
|
static |
Definition at line 80 of file zip_source_crc.c.
References _zip_error_set_from_source(), args, cmd, zip_stat::comp_method, zip_stat::comp_size, zip_stat::crc, crc32(), zip_stat::encryption_method, ctx::error, free(), i, len, MAKE_DETAIL_WITH_INDEX, mask, MAX_DETAIL_INDEX, n, NULL, zip_stat::size, src, UINT_MAX, zip_stat::valid, ZIP_CM_STORE, ZIP_EM_NONE, ZIP_ER_CRC, ZIP_ER_DETAIL_INVALID_FILE_LENGTH, ZIP_ER_INCONS, ZIP_ER_OPNOTSUPP, zip_error_set(), zip_error_to_data(), ZIP_MIN, ZIP_SOURCE_BEGIN_WRITE, ZIP_SOURCE_CLOSE, ZIP_SOURCE_COMMIT_WRITE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, ZIP_SOURCE_GET_ARGS, ZIP_SOURCE_GET_FILE_ATTRIBUTES, zip_source_make_command_bitmap(), ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, zip_source_read(), ZIP_SOURCE_REMOVE, ZIP_SOURCE_ROLLBACK_WRITE, ZIP_SOURCE_SEEK, zip_source_seek(), ZIP_SOURCE_SEEK_WRITE, ZIP_SOURCE_STAT, zip_source_stat(), ZIP_SOURCE_SUPPORTS, zip_source_supports(), ZIP_SOURCE_TELL, zip_source_tell(), ZIP_SOURCE_TELL_WRITE, ZIP_STAT_COMP_METHOD, ZIP_STAT_COMP_SIZE, ZIP_STAT_CRC, ZIP_STAT_ENCRYPTION_METHOD, and ZIP_STAT_SIZE.
Referenced by zip_source_crc_create().
zip_source_t* zip_source_crc_create | ( | zip_source_t * | src, |
int | validate, | ||
zip_error_t * | error | ||
) |
Definition at line 55 of file zip_source_crc.c.
References crc32(), crc_read(), ctx::error, error(), malloc(), NULL, src, validate(), ZIP_ER_INVAL, ZIP_ER_MEMORY, zip_error_init(), zip_error_set(), and zip_source_layered_create().
Referenced by _zip_source_zip_new(), and add_data().