Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | mszipd_stream |
Macros | |
#define | MSZIP_FRAME_SIZE (32768) /* size of LZ history window */ |
#define | MSZIP_LITERAL_MAXSYMBOLS (288) /* literal/length huffman tree */ |
#define | MSZIP_LITERAL_TABLEBITS (9) |
#define | MSZIP_DISTANCE_MAXSYMBOLS (32) /* distance huffman tree */ |
#define | MSZIP_DISTANCE_TABLEBITS (6) |
#define | MSZIP_LITERAL_TABLESIZE (MSZIP_LITERAL_MAXSYMBOLS * 4) |
#define | MSZIP_DISTANCE_TABLESIZE |
Functions | |
struct mszipd_stream * | mszipd_init (struct mspack_system *system, struct mspack_file *input, struct mspack_file *output, int input_buffer_size, int repair_mode) |
int | mszipd_decompress (struct mszipd_stream *zip, off_t out_bytes) |
int | mszipd_decompress_kwaj (struct mszipd_stream *zip) |
void | mszipd_free (struct mszipd_stream *zip) |
#define MSZIP_DISTANCE_MAXSYMBOLS (32) /* distance huffman tree */ |
#define MSZIP_DISTANCE_TABLESIZE |
#define MSZIP_LITERAL_TABLESIZE (MSZIP_LITERAL_MAXSYMBOLS * 4) |
int mszipd_decompress | ( | struct mszipd_stream * | zip, |
off_t | out_bytes | ||
) |
Definition at line 384 of file mszipd.c.
References mszipd_stream::bit_buffer, mszipd_stream::bits_left, D, zip::error, error(), i, mszipd_stream::i_end, mszipd_stream::i_ptr, if(), inflate(), int, MSPACK_ERR_ARGS, MSPACK_ERR_DECRUNCH, MSPACK_ERR_OK, MSPACK_ERR_WRITE, MSZIP_FRAME_SIZE, NULL, READ_BITS, REMOVE_BITS, RESTORE_BITS, and STORE_BITS.
Referenced by cabd_init_decomp().
int mszipd_decompress_kwaj | ( | struct mszipd_stream * | zip | ) |
Definition at line 469 of file mszipd.c.
References mszipd_stream::bit_buffer, mszipd_stream::bits_left, D, zip::error, error(), i, mszipd_stream::i_end, mszipd_stream::i_ptr, inflate(), MSPACK_ERR_DATAFORMAT, MSPACK_ERR_DECRUNCH, MSPACK_ERR_OK, MSPACK_ERR_WRITE, READ_BITS, REMOVE_BITS, RESTORE_BITS, and STORE_BITS.
Referenced by kwajd_extract().
void mszipd_free | ( | struct mszipd_stream * | zip | ) |
Definition at line 508 of file mszipd.c.
References mspack_system::free.
Referenced by cabd_free_decomp(), and kwajd_extract().
struct mszipd_stream* mszipd_init | ( | struct mspack_system * | system, |
struct mspack_file * | input, | ||
struct mspack_file * | output, | ||
int | input_buffer_size, | ||
int | repair_mode | ||
) |
Definition at line 342 of file mszipd.c.
References mspack_system::alloc, zip::error, mspack_system::free, input(), MSPACK_ERR_OK, mszipd_flush_window(), NULL, output, and mszipd_stream::repair_mode.
Referenced by cabd_init_decomp(), and kwajd_extract().