15 r->count =
r->changed = 0;
21 r->ranges->free =
free;
38 if (
r->datalen <
len) {
63 if (
addr >=
r->fr && addr < r->
to) {
90 int i,
len = strlen(
string) + 1;
99 for (
i = 0;
i <
len;
i++) {
137 |______| |___| |_____| |____| |_______| range_t
138 + |______| + |__| + |___| + |_________| + |__| fr/
to
139 ------------ ----------- ----------- ------------- -----------
140 = |_________| = |___||__| = |_______| = |_________| |_______| result
150 if (
r->fr == fr &&
r->to ==
to) {
152 }
else if (
r->fr <= fr &&
r->fr <=
to &&
r->to >= fr &&
r->to <=
to) {
156 }
else if (
r->fr >= fr &&
r->fr <=
to &&
r->to >= fr &&
r->to >=
to) {
160 }
else if (
r->fr <= fr &&
r->fr <=
to &&
r->to >= fr &&
r->to >=
to) {
163 }
else if (
r->fr >= fr &&
r->fr <=
to &&
r->to >= fr &&
r->to <=
to) {
187 |______| |___| |_____| |____| |________| range_t
188 - |______| - |__| - |___| - |_________| - |__| fr/
to
189 ------------ ----------- ----------- ------------- ------------
190 = |__| = = |___| = |__| |__| result
202 if (
r->fr < fr &&
r->fr <
to &&
r->to > fr &&
r->to <
to) {
204 }
else if (
r->fr > fr &&
r->fr <
to &&
r->to > fr &&
r->to >
to) {
209 if (
r->fr > fr &&
r->fr <
to &&
r->to > fr &&
r->to <
to) {
216 if (
r->fr < fr &&
r->fr <
to &&
r->to > fr &&
r->to >
to) {
241 if (
addr >=
r->fr && addr <= r->
to) {
251 return (first->
fr > second->
fr) - (first->
fr < second->
fr);
272 ut64 dif, fr = -1,
to = -1;
302 for (
i = 0;
i <
w;
i++) {
325 total += (
r->to -
r->fr);
348 .....|______________________|...
349 |_____| |____| |_______|
350 ---------------------------------
361 if (
r->fr > fr &&
r->fr <
to) {
382 return *
d = (b0 -
a0), !(a1 < b0 || a0 >
b1);
static bool update(RzCrypto *cry, const ut8 *buf, int len)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
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 count
static states step(struct re_guts *, sopno, sopno, states, int, states)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
RZ_API void rz_list_delete(RZ_NONNULL RzList *list, RZ_NONNULL RzListIter *iter)
Removes an entry in the list by using the RzListIter pointer.
RZ_API RZ_OWN RzList * rz_list_new(void)
Returns a new initialized RzList pointer (free method is not initialized)
RZ_API void rz_list_sort(RZ_NONNULL RzList *list, RZ_NONNULL RzListComparator cmp)
Sorts via merge sort or via insertion sort a list.
RZ_API RZ_BORROW RzListIter * rz_list_append(RZ_NONNULL RzList *list, void *data)
Appends at the end of the list a new element.
RZ_API void rz_list_purge(RZ_NONNULL RzList *list)
Empties the list without freeing the list pointer.
void * malloc(size_t size)
RZ_API RRange * rz_range_new_from_string(const char *string)
RZ_API int rz_range_list(RRange *rgs, int rad)
RZ_API int rz_range_sort(RRange *rgs)
RZ_API RRangeItem * rz_range_item_get(RRange *rgs, ut64 addr)
RZ_API int rz_range_add_from_string(RRange *rgs, const char *string)
static int cmp_ranges(void *a, void *b)
RZ_API int rz_range_sub(RRange *rgs, ut64 fr, ut64 to)
RZ_API ut64 rz_range_size(RRange *rgs)
RZ_API int rz_range_contains(RRange *rgs, ut64 addr)
RZ_API RRange * rz_range_free(RRange *r)
RZ_API RRange * rz_range_inverse(RRange *rgs, ut64 fr, ut64 to, int flags)
RZ_API RRangeItem * rz_range_add(RRange *rgs, ut64 fr, ut64 to, int rw)
RZ_API int rz_range_get_data(RRange *rgs, ut64 addr, ut8 *buf, int len)
RZ_API int rz_range_set_data(RRange *rgs, ut64 addr, const ut8 *buf, int len)
RZ_API void rz_range_percent(RRange *rgs)
RZ_API RRange * rz_range_new(void)
RZ_API int rz_range_get_n(RRange *rgs, int n, ut64 *fr, ut64 *to)
RZ_API int rz_range_overlap(ut64 a0, ut64 a1, ut64 b0, ut64 b1, int *d)
int(* RzListComparator)(const void *value, const void *list_data)
RZ_API ut64 rz_num_get(RzNum *num, const char *str)
RZ_API void rz_num_minmax_swap(ut64 *a, ut64 *b)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
static struct sockaddr static addrlen static backlog const void static flags void flags
ut64(WINAPI *w32_GetEnabledXStateFeatures)()