mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
update doc
This commit is contained in:
parent
9a7c4682bb
commit
abdf370c79
|
@ -3343,6 +3343,6 @@ aot_get_custom_section(AOTModule *module, const char *name, uint32 *len)
|
|||
section = section->next;
|
||||
}
|
||||
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
#endif /* end of WASM_ENABLE_LOAD_CUSTOM_SECTION */
|
||||
|
|
|
@ -1304,7 +1304,7 @@ get_custom_sections_size(AOTCompContext *comp_ctx, AOTCompData *comp_data)
|
|||
size = align_uint(size, 4);
|
||||
/* section id + section size + sub section id */
|
||||
size += (uint32)sizeof(uint32) * 3;
|
||||
/* section name, null terminated string */
|
||||
/* section name and len */
|
||||
size += get_string_size(comp_ctx, section_name);
|
||||
/* section content */
|
||||
size += length;
|
||||
|
|
|
@ -1060,7 +1060,8 @@ wasm_runtime_dump_call_stack(wasm_exec_env_t exec_env);
|
|||
* @param name name of the custom section
|
||||
* @param len return the length of the content if found
|
||||
*
|
||||
* @return Custom section content (including the name) if found, NULL otherwise
|
||||
* @return Custom section content (not including the name length
|
||||
* and name string) if found, NULL otherwise
|
||||
*/
|
||||
WASM_RUNTIME_API_EXTERN const uint8_t *
|
||||
wasm_runtime_get_custom_section(wasm_module_t const module_comm,
|
||||
|
|
Loading…
Reference in New Issue
Block a user