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

Method len

crates/environ/src/module.rs:165–170  ·  view source on GitHub ↗

Returns the number of elements in this segment.

(&self)

Source from the content-addressed store, hash-verified

163
164 /// Returns the number of elements in this segment.
165 pub fn len(&self) -> u64 {
166 match self {
167 Self::Functions(s) => u64::try_from(s.len()).unwrap(),
168 Self::Expressions { exprs, .. } => u64::try_from(exprs.len()).unwrap(),
169 }
170 }
171}
172
173/// A translated WebAssembly module, excluding the function bodies and

Callers 15

defined_func_indicesMethod · 0.45
num_defined_funcsMethod · 0.45
num_defined_tablesMethod · 0.45
num_defined_memoriesMethod · 0.45
num_defined_globalsMethod · 0.45
num_defined_tagsMethod · 0.45
len_typesMethod · 0.45
newMethod · 0.45
encodeMethod · 0.45
pushMethod · 0.45
newMethod · 0.45
frame_descriptorMethod · 0.45

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected