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

Method len_without_retptr

winch/codegen/src/abi/mod.rs:542–548  ·  view source on GitHub ↗

Returns the length of the params, excluding the return pointer, if any.

(&self)

Source from the content-addressed store, hash-verified

540 /// Returns the length of the params, excluding the return pointer,
541 /// if any.
542 pub fn len_without_retptr(&self) -> usize {
543 if self.has_retptr {
544 self.len() - 1
545 } else {
546 self.len()
547 }
548 }
549
550 /// Returns true if the [ABISig] has an extra parameter for stack results.
551 pub fn has_retptr(&self) -> bool {

Callers 2

assignMethod · 0.80
cleanupMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected