64 #define return_val_if_key_len_wrong(mem, key, ret) \
66 if (rz_bv_len(key) != rz_il_mem_key_len(mem)) { \
67 RZ_LOG_ERROR("RzIL: Memory key size mismatch (expected size = %u, but got %u)\n", \
68 (unsigned int)rz_il_mem_key_len(mem), (unsigned int)rz_bv_len(key)); \
97 RZ_LOG_ERROR(
"RzIL: Memory write value size mismatch (expected size = %u, but got %u)\n",
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
RZ_API void Ht_() free(HtName_(Ht) *ht)
#define return_val_if_key_len_wrong(mem, key, ret)
static bool write_n_bits(RzBuffer *buf, RzBitVector *key, RzBitVector *value, bool big_endian)
RZ_API bool rz_il_mem_store(RzILMem *mem, RzBitVector *key, RzBitVector *value)
RZ_API void rz_il_mem_free(RzILMem *mem)
RZ_API ut32 rz_il_mem_key_len(RzILMem *mem)
Get the bit-size of a key (address) into the memory.
RZ_API RzILMem * rz_il_mem_new(RzBuffer *buf, ut32 key_len)
static RzBitVector * read_n_bits(RzBuffer *buf, ut32 n_bits, RzBitVector *key, bool big_endian)
RZ_API bool rz_il_mem_storew(RzILMem *mem, RzBitVector *key, RzBitVector *value, bool big_endian)
RZ_API ut32 rz_il_mem_value_len(RzILMem *mem)
Get the bit-size of a value in the memory.
RZ_API RzBitVector * rz_il_mem_load(RzILMem *mem, RzBitVector *key)
RZ_API RzBitVector * rz_il_mem_loadw(RzILMem *mem, RzBitVector *key, ut32 n_bits, bool big_endian)
void * calloc(size_t number, size_t size)
#define rz_warn_if_reached()
#define rz_return_val_if_fail(expr, val)
RZ_API void rz_bv_set_from_bytes_le(RZ_NONNULL RzBitVector *bv, RZ_IN RZ_NONNULL const ut8 *buf, ut32 bit_offset, ut32 size)
RZ_API void rz_bv_set_to_bytes_le(RZ_NONNULL const RzBitVector *bv, RZ_OUT RZ_NONNULL ut8 *buf)
Set the buffer contents from the given bitvector's bits in little endian format.
RZ_API ut64 rz_bv_to_ut64(RZ_NONNULL const RzBitVector *x)
RZ_API ut32 rz_bv_len(RZ_NONNULL const RzBitVector *bv)
RZ_API RZ_OWN RzBitVector * rz_bv_new_from_ut64(ut32 length, ut64 value)
RZ_API ut8 rz_bv_to_ut8(RZ_NONNULL const RzBitVector *x)
RZ_API void rz_bv_set_from_bytes_be(RZ_NONNULL RzBitVector *bv, RZ_IN RZ_NONNULL const ut8 *buf, ut32 bit_offset, ut32 size)
Set the bitvector's contents from the given bits. The bitvector's size is unchanged....
RZ_API ut32 rz_bv_len_bytes(RZ_NONNULL const RzBitVector *bv)
#define rz_bv_new_zero(l)
RZ_API void rz_bv_set_to_bytes_be(RZ_NONNULL const RzBitVector *bv, RZ_OUT RZ_NONNULL ut8 *buf)
Set the buffer contents from the given bitvector's bits in big endian format.
RZ_API st64 rz_buf_write_at(RZ_NONNULL RzBuffer *b, ut64 addr, RZ_NONNULL const ut8 *buf, ut64 len)
Write len bytes of the buffer at the specified address.
RZ_API RzBuffer * rz_buf_ref(RzBuffer *b)
Increment the reference count of the buffer.
RZ_API st64 rz_buf_read_at(RZ_NONNULL RzBuffer *b, ut64 addr, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
Read len bytes of the buffer at the specified address.
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
#define RZ_LOG_ERROR(fmtstr,...)
A single memory as part of the RzIL VM.
ut64(WINAPI *w32_GetEnabledXStateFeatures)()