Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static int | rz_bin_fatmach0_init (struct rz_bin_fatmach0_obj_t *bin) |
struct rz_bin_fatmach0_arch_t * | rz_bin_fatmach0_extract (struct rz_bin_fatmach0_obj_t *bin, int idx, int *narch) |
void * | rz_bin_fatmach0_free (struct rz_bin_fatmach0_obj_t *bin) |
struct rz_bin_fatmach0_obj_t * | rz_bin_fatmach0_new (const char *file) |
struct rz_bin_fatmach0_obj_t * | rz_bin_fatmach0_from_buffer_new (RzBuffer *b) |
struct rz_bin_fatmach0_obj_t * | rz_bin_fatmach0_from_bytes_new (const ut8 *buf, ut64 size) |
struct rz_bin_fatmach0_arch_t* rz_bin_fatmach0_extract | ( | struct rz_bin_fatmach0_obj_t * | bin, |
int | idx, | ||
int * | narch | ||
) |
Definition at line 53 of file fatmach0.c.
References rz_bin_fatmach0_arch_t::b, eprintf, free(), setup::idx, NULL, rz_bin_fatmach0_arch_t::offset, rz_buf_new_slice(), RZ_NEW0, and rz_bin_fatmach0_arch_t::size.
Referenced by extract(), and oneshot_buffer().
void* rz_bin_fatmach0_free | ( | struct rz_bin_fatmach0_obj_t * | bin | ) |
Definition at line 78 of file fatmach0.c.
References free(), NULL, rz_buf_free(), and RZ_FREE.
Referenced by free_xtr(), rz_bin_fatmach0_from_buffer_new(), rz_bin_fatmach0_from_bytes_new(), and rz_bin_fatmach0_new().
struct rz_bin_fatmach0_obj_t* rz_bin_fatmach0_from_buffer_new | ( | RzBuffer * | b | ) |
Definition at line 112 of file fatmach0.c.
References rz_bin_fatmach0_obj_t::b, b, NULL, rz_bin_fatmach0_free(), rz_bin_fatmach0_init(), rz_buf_ref(), rz_buf_size(), RZ_NEW0, rz_return_val_if_fail, and rz_bin_fatmach0_obj_t::size.
Referenced by oneshot_buffer().
struct rz_bin_fatmach0_obj_t* rz_bin_fatmach0_from_bytes_new | ( | const ut8 * | buf, |
ut64 | size | ||
) |
Definition at line 125 of file fatmach0.c.
References NULL, rz_bin_fatmach0_free(), rz_bin_fatmach0_init(), rz_buf_new_with_bytes(), rz_buf_set_bytes(), and RZ_NEW0.
|
static |
Definition at line 9 of file fatmach0.c.
References FAT_MAGIC, i, len, malloc(), rz_buf_read_at(), RZ_FREE, RZ_LOG_ERROR, and rz_read_be32().
Referenced by rz_bin_fatmach0_from_buffer_new(), rz_bin_fatmach0_from_bytes_new(), and rz_bin_fatmach0_new().
struct rz_bin_fatmach0_obj_t* rz_bin_fatmach0_new | ( | const char * | file | ) |
Definition at line 88 of file fatmach0.c.
References file, free(), NULL, rz_bin_fatmach0_free(), rz_bin_fatmach0_init(), rz_buf_new_with_bytes(), rz_buf_set_bytes(), rz_file_slurp(), and RZ_NEW0.
Referenced by load().