Rizin
unix-like reverse engineering framework and cli tools
decode.h File Reference
#include <rz_types.h>

Go to the source code of this file.

Functions

char * decode (ut32 ins_pos, ut32 *next_ins_pos)
 
static bool is_linear_circular (ut32 ins_bits)
 
static bool is_hash (st32 hash_code)
 
static bool check_arg (ut32 ins_bits, int *err_code)
 
static ut32 get_ins_bits (ut32 hash_code, ut32 ins_pos, char *ins, ut32 ins_len, ut32 magic_value, int *err_code)
 
static ut32 get_q_bits (ut32 val, char *ins, ut32 ins_len, int *err_code)
 
static char * do_decode (ut32 ins_off, ut32 ins_pos, ut32 two_ins, ut32 *next_ins_pos, st32 *ins_hash_code, int *err_code)
 
static char * decode_ins (st32 hash_code, ut32 ins_pos, ut32 ins_off, ut32 *ins_len_dec, ut32 *reg_len_dec, ut32 *ret_ins_bits, ut32 magic_value, ut8 two_ins, int *err_code)
 
static char * decode_regis (char *reg_arg, st32 hash_code, ut32 ins_bits, ut32 *ret_ins_bits, int *err_code)
 
static char * get_token_decoded (st32 hash_code, char *ins_token, ut32 ins_token_len, char *reg_arg, ut32 *ret_ins_bits, ut32 *ret_reg_len, ut32 magic_value, ut32 ins_pos, ut32 ins_len, ut8 two_ins, int *err_code)
 

Function Documentation

◆ check_arg()

static bool check_arg ( ut32  ins_bits,
int err_code 
)
static

◆ decode()

char* decode ( ut32  ins_pos,
ut32 next_ins_pos 
)

◆ decode_ins()

static char* decode_ins ( st32  hash_code,
ut32  ins_pos,
ut32  ins_off,
ut32 ins_len_dec,
ut32 reg_len_dec,
ut32 ret_ins_bits,
ut32  magic_value,
ut8  two_ins,
int err_code 
)
static

◆ decode_regis()

static char* decode_regis ( char *  reg_arg,
st32  hash_code,
ut32  ins_bits,
ut32 ret_ins_bits,
int err_code 
)
static

◆ do_decode()

static char* do_decode ( ut32  ins_off,
ut32  ins_pos,
ut32  two_ins,
ut32 next_ins_pos,
st32 ins_hash_code,
int err_code 
)
static

◆ get_ins_bits()

static ut32 get_ins_bits ( ut32  hash_code,
ut32  ins_pos,
char *  ins,
ut32  ins_len,
ut32  magic_value,
int err_code 
)
static

◆ get_q_bits()

static ut32 get_q_bits ( ut32  val,
char *  ins,
ut32  ins_len,
int err_code 
)
static

◆ get_token_decoded()

static char* get_token_decoded ( st32  hash_code,
char *  ins_token,
ut32  ins_token_len,
char *  reg_arg,
ut32 ret_ins_bits,
ut32 ret_reg_len,
ut32  magic_value,
ut32  ins_pos,
ut32  ins_len,
ut8  two_ins,
int err_code 
)
static

◆ is_hash()

static bool is_hash ( st32  hash_code)
static

◆ is_linear_circular()

static bool is_linear_circular ( ut32  ins_bits)
static