MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / call

Method call

wasm-pdk/src/lib.rs:451–463  ·  view source on GitHub ↗

Invoke `recv. (args)`; argv handles stay owned by the caller.

(&self, name: &str, args: &[u32])

Source from the content-addressed store, hash-verified

449impl Handle {
450 /// Invoke `recv.<name>(args)`; argv handles stay owned by the caller.
451 pub fn call(&self, name: &str, args: &[u32]) -> Result<Handle> {
452 let mut out: u32 = 0;
453 let r = unsafe {
454 edge_op(
455 op::CALL, self.raw,
456 name.as_ptr(), name.len() as u32,
457 args.as_ptr(), args.len() as u32,
458 &mut out as *mut u32,
459 )
460 };
461 if r != 0 { return Err(last_error()); }
462 Ok(Handle::from_raw(out))
463 }
464
465 /// `recv.<name>`, read attribute or bind builtin method.
466 pub fn get_attr(&self, name: &str) -> Result<Handle> {

Callers 11

get_handleMethod · 0.45
str_listFunction · 0.45
findallFunction · 0.45
groupsFunction · 0.45
spanFunction · 0.45
parse_value_withFunction · 0.45
parse_arrayFunction · 0.45
parse_object_pairsFunction · 0.45
apply_object_hookFunction · 0.45
serializeFunction · 0.45
serialize_intoFunction · 0.45

Calls 2

last_errorFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected