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

Method type_ids

crates/wasmtime/src/runtime/vm.rs:376–386  ·  view source on GitHub ↗

Returns an array, indexed by `ModuleInternedTypeIndex` of all `VMSharedSignatureIndex` entries corresponding to the `SignatureIndex`.

(&self)

Source from the content-addressed store, hash-verified

374 /// Returns an array, indexed by `ModuleInternedTypeIndex` of all
375 /// `VMSharedSignatureIndex` entries corresponding to the `SignatureIndex`.
376 fn type_ids(&self) -> &[VMSharedTypeIndex] {
377 match self {
378 ModuleRuntimeInfo::Module(m) => m
379 .engine_code()
380 .signatures()
381 .as_module_map()
382 .values()
383 .as_slice(),
384 ModuleRuntimeInfo::Bare(_) => &[],
385 }
386 }
387
388 /// Offset information for the current host.
389 pub(crate) fn offsets(&self) -> &VMOffsets<HostPtr> {

Callers 1

initialize_vmctxMethod · 0.80

Calls 5

as_module_mapMethod · 0.80
as_sliceMethod · 0.45
valuesMethod · 0.45
signaturesMethod · 0.45
engine_codeMethod · 0.45

Tested by

no test coverage detected