24 arena =
reg->regset[
i].arena;
42 sz =
reg->regset[
type].arena->size;
62 if (
reg->regset[
i].arena) {
63 arena =
reg->regset[
i].arena;
139 int size,
i, newsize;
147 rz_list_foreach (
reg->regset[
i].regs,
iter,
r) {
200 if (!
reg->regset[
i].pool) {
220 if (!
reg->regset[
i].pool) {
228 a =
reg->regset[
i].pool->tail->data;
230 reg->regset[
i].arena =
a;
231 reg->regset[
i].cur =
reg->regset[
i].pool->tail;
252 reg->regset[
i].arena =
b;
253 reg->regset[
i].cur =
reg->regset[
i].pool->tail;
255 if (
reg->regset[0].pool) {
265 if (!
a || !
a->bytes) {
321 int bin_str_len = (
len + 1) / 2;
324 eprintf(
"Failed to decode hex str.\n");
331 int sz =
reg->regset[
i].arena->size;
332 int bl = bin_str_len -
n;
334 if (bln > 0 && bln < sz) {
350 rz_list_foreach (
reg->regset[
i].pool,
iter,
a) {
RZ_API bool rz_reg_set_bytes(RzReg *reg, int type, const ut8 *buf, const int len)
RZ_API ut8 * rz_reg_arena_dup(RzReg *reg, const ut8 *source)
RZ_API bool rz_reg_read_regs(RzReg *reg, ut8 *buf, const int len)
RZ_API int rz_reg_fit_arena(RzReg *reg)
RZ_API ut8 * rz_reg_arena_peek(RzReg *reg)
RZ_API int rz_reg_arena_push(RzReg *reg)
RZ_API ut8 * rz_reg_get_bytes(RzReg *reg, int type, int *size)
RZ_API void rz_reg_arena_pop(RzReg *reg)
RZ_API void rz_reg_arena_shrink(RzReg *reg)
RZ_API void rz_reg_arena_zero(RzReg *reg, RzRegisterType type)
RZ_API void rz_reg_arena_swap(RzReg *reg, int copy)
RZ_API RzRegArena * rz_reg_arena_new(size_t size)
RZ_API void rz_reg_arena_poke(RzReg *reg, const ut8 *ret)
RZ_API void rz_reg_arena_free(RzRegArena *ra)
RZ_API int rz_reg_arena_set_bytes(RzReg *reg, const char *str)
static RzILOpEffect * bl(cs_insn *insn, bool is_thumb)
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
RZ_API RZ_OWN void * rz_list_pop(RZ_NONNULL RzList *list)
Removes and returns the last element of the list.
RZ_API RZ_BORROW RzListIter * rz_list_push(RZ_NONNULL RzList *list, void *item)
Alias for rz_list_append.
RZ_API ut32 rz_list_length(RZ_NONNULL const RzList *list)
Returns the length of the list.
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
RZ_API RzRegSet * rz_reg_regset_get(RzReg *r, int type)
#define rz_return_if_fail(expr)
RZ_API int rz_hex_str_is_valid(const char *s)
RZ_API int rz_hex_str2bin(const char *in, ut8 *out)
Convert an input string in into the binary form in out.
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API const char * rz_str_trim_head_ro(const char *str)