monitor_rt_lookup_symbol

Function monitor_rt_lookup_symbol 

Source
pub fn monitor_rt_lookup_symbol(
    lib_desc: Option<Descriptor>,
    name_len: usize,
) -> Result<usize, TwzError>
Expand description

Look up a symbol by name, searching within the library identified by lib_desc (or across all libraries in the caller’s compartment if lib_desc is None). The symbol name (as UTF-8 bytes) must be written to the per-thread simple buffer before calling, and name_len must be the number of bytes written. Returns the relocated symbol address (as a usize) on success.