/* Copyright 2015 the unarr project authors (see AUTHORS file). License: LGPLv3 */ #ifndef zip_inflate_h #define zip_inflate_h #include #include typedef struct inflate_state_s inflate_state; inflate_state *inflate_create(bool inflate64); /* updates avail_in and avail_out and returns -1 on EOF or any other non-zero value on error */ int inflate_process(inflate_state *state, const void *data_in, size_t *avail_in, void *data_out, size_t *avail_out); /* restores up to 8 bytes of data cached by inflate_process */ int inflate_flush(inflate_state *state, unsigned char data_in[8]); void inflate_free(inflate_state *state); #endif