24 while (read_len <
size) {
36 read_len +=
sizeof(
ut32) * 2;
64 imid = (imin + imax) / 2;
76 if ((imax == imin) && (
A[imin] ==
key)) {
102 if (omap_stream->froms == 0) {
103 omap_stream->froms = (
unsigned int *)
malloc(4 *
len);
104 if (!omap_stream->froms) {
108 while (rz_list_iter_next(it)) {
109 omap_entry = (
OmapEntry *)rz_list_iter_get(it);
110 omap_stream->froms[
i] = omap_entry->
from;
122 if (omap_stream->froms[
pos] != address) {
129 if (omap_entry->
to == 0) {
130 return omap_entry->
to;
132 return omap_entry->
to + (address - omap_entry->
from);
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)
RZ_API RZ_BORROW RzListIter * rz_list_iterator(const RzList *list)
returns the first RzList iterator int the list
RZ_API RZ_OWN RzList * rz_list_new(void)
Returns a new initialized RzList pointer (free method is not initialized)
RZ_API RZ_BORROW void * rz_list_get_n(RZ_NONNULL const RzList *list, ut32 n)
Returns the N-th element of the list.
RZ_API ut32 rz_list_length(RZ_NONNULL const RzList *list)
Returns the length of the 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_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
void * malloc(size_t size)
RZ_API int rz_bin_pdb_omap_remap(RZ_NONNULL RzPdbOmapStream *omap_stream, int address)
return remapped symbol address
static int binary_search(unsigned int *A, int key, int imin, int imax)
RZ_IPI bool parse_omap_stream(RzPdb *pdb, RzPdbMsfStream *stream)
RZ_IPI void free_omap_stream(RzPdbOmapStream *stream)
#define rz_return_val_if_fail(expr, val)
#define rz_buf_read_le32(b, result)
RZ_API ut64 rz_buf_size(RZ_NONNULL RzBuffer *b)
Return the size of the buffer.
#define RZ_LOG_ERROR(fmtstr,...)