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

Method new

crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:73–75  ·  view source on GitHub ↗

Create a new `ArrayRefPre` that is associated with the given store and type.

(mut store: impl AsContextMut, ty: ArrayType)

Source from the content-addressed store, hash-verified

71 /// Create a new `ArrayRefPre` that is associated with the given store
72 /// and type.
73 pub fn new(mut store: impl AsContextMut, ty: ArrayType) -> Self {
74 Self::_new(store.as_context_mut().0, ty)
75 }
76
77 pub(crate) fn _new(store: &mut StoreOpaque, ty: ArrayType) -> Self {
78 store.insert_gc_host_alloc_type(ty.registered_type().clone());

Callers

nothing calls this directly

Calls 4

assert_readyFunction · 0.50
as_context_mutMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected