MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / function_results

Method function_results

crates/parser/src/module.rs:72–76  ·  view source on GitHub ↗
(&self, ordinal: usize)

Source from the content-addressed store, hash-verified

70
71impl<'a> ModuleReader<'a> {
72 fn function_results(&self, ordinal: usize) -> ValueCounts {
73 let ty_idx = self.code_type_addrs[ordinal];
74 let ty = self.func_types.get(ty_idx as usize).expect("No func type for func, this is a bug");
75 ValueCounts::from_iter(ty.results())
76 }
77
78 pub(crate) fn process_payload(&mut self, payload: Payload<'_>, validator: &mut Validator) -> Result<()> {
79 fn check_section(section: &str, duplicate: bool) -> Result<()> {

Callers 1

Calls 2

resultsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected