Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | BITS_TYPE struct qtmd_stream |
#define | BITS_VAR qtm |
#define | BITS_ORDER_MSB |
#define | READ_BYTES |
#define | GET_SYMBOL(model, var) |
Functions | |
static void | qtmd_update_model (struct qtmd_model *model) |
static void | qtmd_init_model (struct qtmd_model *model, struct qtmd_modelsym *syms, int start, int len) |
struct qtmd_stream * | qtmd_init (struct mspack_system *system, struct mspack_file *input, struct mspack_file *output, int window_bits, int input_buffer_size) |
int | qtmd_decompress (struct qtmd_stream *qtm, off_t out_bytes) |
void | qtmd_free (struct qtmd_stream *qtm) |
Variables | |
static const unsigned int | position_base [42] |
static const unsigned char | extra_bits [42] |
static const unsigned char | length_base [27] |
static const unsigned char | length_extra [27] |
#define BITS_TYPE struct qtmd_stream |
#define READ_BYTES |
int qtmd_decompress | ( | struct qtmd_stream * | qtm, |
off_t | out_bytes | ||
) |
Definition at line 256 of file qtmd.c.
References qtmd_stream::bit_buffer, qtmd_stream::bits_left, C, qtmd_stream::C, D, qtmd_stream::error, extra_bits, qtmd_stream::frame_todo, GET_SYMBOL, H, qtmd_stream::H, qtmd_stream::header_read, i, qtmd_stream::i_end, qtmd_stream::i_ptr, int, L, qtmd_stream::L, length_base, length_extra, qtmd_stream::model3, qtmd_stream::model6len, qtmd_stream::model7, MSPACK_ERR_ARGS, MSPACK_ERR_DECRUNCH, MSPACK_ERR_OK, MSPACK_ERR_WRITE, qtmd_stream::o_end, qtmd_stream::o_ptr, qtmd_stream::output, position_base, QTM_FRAME_SIZE, capstone::range, READ_BITS, READ_MANY_BITS, REMOVE_BITS, RESTORE_BITS, STORE_BITS, qtmd_stream::sys, qtmd_stream::window, qtmd_stream::window_posn, qtmd_stream::window_size, and mspack_system::write.
Referenced by cabd_init_decomp().
void qtmd_free | ( | struct qtmd_stream * | qtm | ) |
Definition at line 482 of file qtmd.c.
References mspack_system::free, qtmd_stream::inbuf, qtmd_stream::sys, and qtmd_stream::window.
Referenced by cabd_free_decomp().
struct qtmd_stream* qtmd_init | ( | struct mspack_system * | system, |
struct mspack_file * | input, | ||
struct mspack_file * | output, | ||
int | window_bits, | ||
int | input_buffer_size | ||
) |
Definition at line 186 of file qtmd.c.
References mspack_system::alloc, qtmd_stream::bit_buffer, qtmd_stream::bits_left, qtmd_stream::error, qtmd_stream::frame_todo, mspack_system::free, qtmd_stream::header_read, i, qtmd_stream::i_end, qtmd_stream::i_ptr, qtmd_stream::inbuf, qtmd_stream::inbuf_size, qtmd_stream::input, input(), qtmd_stream::input_end, qtmd_stream::m0sym, qtmd_stream::m1sym, qtmd_stream::m2sym, qtmd_stream::m3sym, qtmd_stream::m4sym, qtmd_stream::m5sym, qtmd_stream::m6lsym, qtmd_stream::m6sym, qtmd_stream::m7sym, qtmd_stream::model3, qtmd_stream::model6len, qtmd_stream::model7, MSPACK_ERR_OK, NULL, qtmd_stream::o_end, qtmd_stream::o_ptr, qtmd_stream::output, output, QTM_FRAME_SIZE, qtmd_init_model(), qtmd_stream::sys, qtmd_stream::window, qtmd_stream::window_posn, and qtmd_stream::window_size.
Referenced by cabd_init_decomp().
|
static |
Definition at line 168 of file qtmd.c.
References qtmd_modelsym::cumfreq, qtmd_model::entries, i, len, qtmd_model::shiftsleft, start, qtmd_modelsym::sym, and qtmd_model::syms.
Referenced by qtmd_init().
|
static |
Definition at line 124 of file qtmd.c.
References qtmd_modelsym::cumfreq, qtmd_model::entries, i, qtmd_model::shiftsleft, qtmd_model::syms, and autogen_x86imm::tmp.
Definition at line 71 of file qtmd.c.
Referenced by qtmd_decompress().
Definition at line 75 of file qtmd.c.
Referenced by qtmd_decompress().
Definition at line 79 of file qtmd.c.
Referenced by qtmd_decompress().
Definition at line 66 of file qtmd.c.
Referenced by qtmd_decompress().