39 #include <zstd_errors.h>
117 case ZSTD_error_no_error:
120 case ZSTD_error_corruption_detected:
121 case ZSTD_error_checksum_wrong:
122 case ZSTD_error_dictionary_corrupted:
123 case ZSTD_error_dictionary_wrong:
126 case ZSTD_error_memory_allocation:
129 case ZSTD_error_parameter_unsupported:
130 case ZSTD_error_parameter_outOfBound:
156 if (ZSTD_isError(ret)) {
187 if (ZSTD_isError(ret)) {
203 ctx->
in.src = (
const void *)data;
248 if (ZSTD_isError(ret)) {
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
RZ_API void Ht_() free(HtName_(Ht) *ht)
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
#define ZIP_ER_COMPRESSED_DATA
void * malloc(size_t size)
uint64_t uncompressed_size
void error(const char *msg)
static zip_uint64_t maximum_compressed_size(zip_uint64_t uncompressed_size)
static void deallocate(void *ud)
static int map_error(size_t ret)
zip_compression_algorithm_t zip_algorithm_zstd_compress
static void * decompress_allocate(zip_uint16_t method, int compression_flags, zip_error_t *error)
static void * allocate(bool compress, int compression_flags, zip_error_t *error)
zip_compression_algorithm_t zip_algorithm_zstd_decompress
static void * compress_allocate(zip_uint16_t method, int compression_flags, zip_error_t *error)
static bool start(void *ud, zip_stat_t *st, zip_file_attributes_t *attributes)
static bool end(void *ud)
static zip_uint16_t general_purpose_bit_flags(void *ud)
static void end_of_input(void *ud)
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)
static zip_compression_status_t process(void *ud, zip_uint8_t *data, zip_uint64_t *length)
enum zip_compression_status zip_compression_status_t
@ ZIP_COMPRESSION_NEED_DATA