Rizin
unix-like reverse engineering framework and cli tools
rz_range.h
Go to the documentation of this file.
1 #ifndef RZ_RANGE_H
2 #define RZ_RANGE_H
3 
4 #include <rz_types.h>
5 #include <rz_list.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 /* range.c */
12 
13 typedef struct rz_range_item_t {
17  int datalen;
19 
20 typedef struct rz_range_t {
21  int count;
22  int changed;
25 
27 RZ_API RRange *rz_range_new_from_string(const char *string);
31 RZ_API int rz_range_add_from_string(RRange *rgs, const char *string);
35 RZ_API int rz_range_sort(RRange *rgs);
36 RZ_API void rz_range_percent(RRange *rgs);
37 RZ_API int rz_range_list(RRange *rgs, int rad);
38 RZ_API int rz_range_get_n(RRange *rgs, int n, ut64 *from, ut64 *to);
40 RZ_API int rz_range_overlap(ut64 a0, ut64 a1, ut64 b0, ut64 b1, int *d);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif // RZ_RANGE_H
#define RZ_API
#define r
Definition: crypto_rc6.c:12
a0
Definition: insn-good.s.cs:704
uint8_t ut8
Definition: lh5801.h:11
int n
Definition: mipsasm.c:19
RZ_API RRange * rz_range_new_from_string(const char *string)
Definition: range.c:82
RZ_API int rz_range_list(RRange *rgs, int rad)
Definition: range.c:314
struct rz_range_item_t RRangeItem
RZ_API int rz_range_sort(RRange *rgs)
Definition: range.c:254
struct rz_range_t RRange
RZ_API int rz_range_add_from_string(RRange *rgs, const char *string)
Definition: range.c:88
RZ_API RRange * rz_range_inverse(RRange *rgs, ut64 from, ut64 to, int flags)
Definition: range.c:353
RZ_API ut64 rz_range_size(RRange *r)
Definition: range.c:72
RZ_API int rz_range_contains(RRange *rgs, ut64 addr)
Definition: range.c:237
RZ_API RRange * rz_range_free(RRange *r)
Definition: range.c:26
RZ_API RRangeItem * rz_range_item_get(RRange *r, ut64 addr)
Definition: range.c:59
RZ_API int rz_range_get_n(RRange *rgs, int n, ut64 *from, ut64 *to)
Definition: range.c:331
RZ_API void rz_range_percent(RRange *rgs)
Definition: range.c:267
RZ_API int rz_range_sub(RRange *rgs, ut64 from, ut64 to)
Definition: range.c:193
RZ_API RRangeItem * rz_range_add(RRange *rgs, ut64 from, ut64 to, int rw)
Definition: range.c:143
RZ_API RRange * rz_range_new(void)
Definition: range.c:12
RZ_API int rz_range_overlap(ut64 a0, ut64 a1, ut64 b0, ut64 b1, int *d)
Definition: range.c:378
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
Definition: sfsocketcall.h:123
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
Definition: sfsocketcall.h:125
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
#define d(i)
Definition: sha256.c:44
RzList * ranges
Definition: rz_range.h:23
int changed
Definition: rz_range.h:22
int count
Definition: rz_range.h:21
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static int addr
Definition: z80asm.c:58