82 if (!(cur + sz - 1 <=
max)) {
208 if (p < ptr->param_count - 1) {
290 for (j = 0; j <
count; j++) {
560 if (!local_name->
names) {
812 rz_list_foreach (
bin->g_names,
iter, nam) {
853 if (
bin->g_sections) {
854 return bin->g_sections;
893 strcpy(ptr->
name,
"type");
897 strcpy(ptr->
name,
"import");
901 strcpy(ptr->
name,
"function");
905 strcpy(ptr->
name,
"table");
909 strcpy(ptr->
name,
"memory");
913 strcpy(ptr->
name,
"global");
917 strcpy(ptr->
name,
"export");
921 strcpy(ptr->
name,
"start");
925 strcpy(ptr->
name,
"element");
929 strcpy(ptr->
name,
"code");
933 strcpy(ptr->
name,
"data");
958 bin->g_sections = ret;
972 if (!
bin || !
bin->g_sections) {
975 if (
bin->entrypoint) {
976 return bin->entrypoint;
1000 return (
ut32)(func ? func->
code : 0);
1007 if (!
bin || !
bin->g_sections) {
1010 if (
bin->g_imports) {
1011 return bin->g_imports;
1023 return bin->g_imports;
1030 if (!
bin || !
bin->g_sections) {
1033 if (
bin->g_exports) {
1034 return bin->g_exports;
1046 return bin->g_exports;
1053 if (!
bin || !
bin->g_sections) {
1057 return bin->g_types;
1069 return bin->g_types;
1076 if (!
bin || !
bin->g_sections) {
1079 if (
bin->g_tables) {
1080 return bin->g_tables;
1092 return bin->g_tables;
1099 if (!
bin || !
bin->g_sections) {
1103 if (
bin->g_memories) {
1104 return bin->g_memories;
1119 return bin->g_memories;
1126 if (!
bin || !
bin->g_sections) {
1129 if (
bin->g_globals) {
1130 return bin->g_globals;
1142 return bin->g_globals;
1149 if (!
bin || !
bin->g_sections) {
1152 if (
bin->g_elements) {
1153 return bin->g_elements;
1165 return bin->g_elements;
1173 if (!
bin || !
bin->g_sections) {
1177 return bin->g_codes;
1189 return bin->g_codes;
1196 if (!
bin || !
bin->g_sections) {
1200 return bin->g_datas;
1212 return bin->g_datas;
1222 return bin->g_names;
1234 return bin->g_names;
1238 if (!(
bin &&
bin->g_names)) {
1244 rz_list_foreach (
bin->g_names,
iter, nam) {
1249 return (
const char *)
n->name;
RzList * imports(RzBinFile *bf)
RzList * sections(RzBinFile *bf)
const lzma_allocator const uint8_t size_t uint8_t * out
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 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 static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
size_t map(int syms, int left, int len)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API RZ_OWN RzList * rz_list_newf(RzListFree f)
Returns a new initialized RzList pointer and sets the free method.
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_first(RZ_NONNULL const RzList *list)
Returns the first element of the list.
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 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 * calloc(size_t number, size_t size)
insn_type_descr_t types[]
int codes(struct state *s, const struct huffman *lencode, const struct huffman *distcode)
#define rz_return_val_if_fail(expr, val)
RZ_API ut64 rz_buf_tell(RZ_NONNULL RzBuffer *b)
Return the current cursor position.
RZ_API st64 rz_buf_seek(RZ_NONNULL RzBuffer *b, st64 addr, int whence)
Modify the current cursor position in the buffer.
RZ_API RzBuffer * rz_buf_ref(RzBuffer *b)
Increment the reference count of the buffer.
RZ_API bool rz_buf_read8(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut8 *result)
Read a byte at the cursor in the buffer.
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
RZ_API st64 rz_buf_read(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
RZ_API ut64 rz_buf_size(RZ_NONNULL RzBuffer *b)
Return the size of the buffer.
RZ_API RzIDStorage * rz_id_storage_new(ut32 start_id, ut32 last_id)
RZ_API void rz_id_storage_free(RzIDStorage *storage)
RZ_API void * rz_id_storage_get(RzIDStorage *storage, ut32 id)
RZ_API bool rz_id_storage_add(RzIDStorage *storage, void *data, ut32 *id)
void(* RzListFree)(void *ptr)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API size_t read_i32_leb128(const ut8 *p, const ut8 *max, st32 *out_val)
RZ_API size_t read_u32_leb128(const ut8 *p, const ut8 *max, ut32 *out_val)
XX curplugin == o->plugin.
struct rz_bin_wasm_local_entry_t * locals
struct rz_bin_wasm_name_t * mod_name
RzBinWasmCustomNameFunctionNames * func
RzBinWasmCustomNameLocalNames * local
struct rz_bin_wasm_init_expr_t offset
char field_str[RZ_BIN_WASM_STRING_LENGTH]
rz_bin_wasm_value_type_t content_type
rz_bin_wasm_value_type_t content_type
char field_str[RZ_BIN_WASM_STRING_LENGTH]
struct rz_bin_wasm_memory_type_t type_m
struct rz_bin_wasm_global_type_t type_g
struct rz_bin_wasm_table_type_t type_t
char module_str[RZ_BIN_WASM_STRING_LENGTH]
struct rz_bin_wasm_resizable_limits_t limits
struct rz_bin_wasm_resizable_limits_t limits
ut8 name[RZ_BIN_WASM_STRING_LENGTH]
char name[RZ_BIN_WASM_STRING_LENGTH]
struct rz_bin_wasm_resizable_limits_t limits
struct rz_bin_wasm_resizable_limits_t limits
rz_bin_wasm_value_type_t elem_type
rz_bin_wasm_value_type_t return_type
rz_bin_wasm_value_type_t * param_types
char to_str[RZ_BIN_WASM_STRING_LENGTH]
ut64(WINAPI *w32_GetEnabledXStateFeatures)()