MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / param_count

Method param_count

winch/codegen/src/codegen/control.rs:137–143  ·  view source on GitHub ↗

Returns the signature param count.

(&self)

Source from the content-addressed store, hash-verified

135
136 /// Returns the signature param count.
137 pub fn param_count(&self) -> usize {
138 match &self.ty {
139 BlockType::Void | BlockType::Single(_) => 0,
140 BlockType::Func(f) => f.params().len(),
141 BlockType::ABISig(sig) => sig.params_without_retptr().len(),
142 }
143 }
144
145 /// Returns the signature return count.
146 pub fn return_count(&self) -> usize {

Callers 1

calculate_stack_stateMethod · 0.45

Calls 3

params_without_retptrMethod · 0.80
lenMethod · 0.45
paramsMethod · 0.45

Tested by

no test coverage detected