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

Method len

crates/wasmtime/src/runtime/vm/gc/enabled/arrayref.rs:127–129  ·  view source on GitHub ↗

Get the length of this array.

(&self, store: &StoreOpaque)

Source from the content-addressed store, hash-verified

125
126 /// Get the length of this array.
127 pub fn len(&self, store: &StoreOpaque) -> Result<u32> {
128 store.unwrap_gc_store().array_len(self)
129 }
130
131 /// Read an element of the given `StorageType` into a `Val`.
132 ///

Callers 7

copy_from_sliceMethod · 0.45
copy_withinMethod · 0.45
replace_memoryMethod · 0.45
replace_memoryMethod · 0.45
num_free_blocksMethod · 0.45
writeMethod · 0.45

Calls 2

unwrap_gc_storeMethod · 0.80
array_lenMethod · 0.45

Tested by

no test coverage detected