Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | insn_map |
struct | name_map |
Macros | |
#define | HEX_THRESHOLD 9 |
#define | ARR_SIZE(a) (sizeof(a)/sizeof(a[0])) |
#define | MATRIX_SIZE(a) (sizeof(a[0])/sizeof(a[0][0])) |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
#define | CS_AC_IGNORE (1 << 7) |
Typedefs | |
typedef struct insn_map | insn_map |
typedef struct name_map | name_map |
Functions | |
unsigned short | insn_find (const insn_map *m, unsigned int max, unsigned int id, unsigned short **cache) |
int | name2id (const name_map *map, int max, const char *name) |
const char * | id2name (const name_map *map, int max, const unsigned int id) |
unsigned int | count_positive (const uint16_t *list) |
unsigned int | count_positive8 (const unsigned char *list) |
char * | cs_strdup (const char *str) |
int | cs_snprintf (char *buffer, size_t size, const char *fmt,...) |
bool | arr_exist8 (unsigned char *arr, unsigned char max, unsigned int id) |
bool | arr_exist (uint16_t *arr, unsigned char max, unsigned int id) |
Definition at line 128 of file utils.c.
References syscall_preprocessing::arr, i, and max.
Referenced by cs_reg_read(), and cs_reg_write().
Definition at line 104 of file utils.c.
References cs_vsnprintf.
Referenced by cs_winkernel_vsnprintf_test(), and skipdata_opstr().
char* cs_strdup | ( | const char * | str | ) |
Definition at line 92 of file utils.c.
References cs_mem_malloc, len, NULL, and cmd_descs_generate::str.
unsigned short insn_find | ( | const insn_map * | m, |
unsigned int | max, | ||
unsigned int | id, | ||
unsigned short ** | cache | ||
) |
Definition at line 31 of file utils.c.
References id, insns, make_id2insn(), max, and NULL.