Rizin
unix-like reverse engineering framework and cli tools
mem.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 Florian Märkl <info@florianmaerkl.de>
2 // SPDX-FileCopyrightText: 2021 heersin <teablearcher@gmail.com>
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 #ifndef RZ_IL_MEM_H
6 #define RZ_IL_MEM_H
7 
8 #include <rz_util.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 
26 typedef struct rz_il_mem_t {
30 
37 RZ_API RzBitVector *rz_il_mem_loadw(RzILMem *mem, RzBitVector *key, ut32 n_bits, bool big_endian);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // RZ_IL_MEM_H
static int value
Definition: cmd_api.c:93
#define RZ_API
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
Definition: sflib.h:118
uint32_t ut32
voidpf void * buf
Definition: ioapi.h:138
void * mem
Definition: libc.cpp:91
struct rz_il_mem_t RzILMem
A single memory as part of the RzIL VM.
RZ_API bool rz_il_mem_store(RzILMem *mem, RzBitVector *key, RzBitVector *value)
Definition: mem.c:93
RZ_API void rz_il_mem_free(RzILMem *mem)
Definition: mem.c:34
RZ_API ut32 rz_il_mem_key_len(RzILMem *mem)
Get the bit-size of a key (address) into the memory.
Definition: mem.c:49
RZ_API RzILMem * rz_il_mem_new(RzBuffer *buf, ut32 key_len)
Definition: mem.c:13
RZ_API bool rz_il_mem_storew(RzILMem *mem, RzBitVector *key, RzBitVector *value, bool big_endian)
Definition: mem.c:169
RZ_API ut32 rz_il_mem_value_len(RzILMem *mem)
Get the bit-size of a value in the memory.
Definition: mem.c:60
ut32 RzILMemIndex
Definition: mem.h:14
RZ_API RzBitVector * rz_il_mem_load(RzILMem *mem, RzBitVector *key)
Definition: mem.c:79
RZ_API RzBitVector * rz_il_mem_loadw(RzILMem *mem, RzBitVector *key, ut32 n_bits, bool big_endian)
Definition: mem.c:157
structure for bitvector
Definition: rz_bitvector.h:19
A single memory as part of the RzIL VM.
Definition: mem.h:26
RzBuffer * buf
Definition: mem.h:27
ut32 key_len
Definition: mem.h:28