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

Method debug_table

crates/wasmtime/src/runtime/debug.rs:276–286  ·  view source on GitHub ↗

Get access to a table within this instance's table index space. This permits accessing tables whether they are exported or not. However, it is only available for purposes of debugging, and so is only permitted when `guest_debug` is enabled in the Engine's configuration. The intent of the Wasmtime API is to enforce the Wasm type system's encapsulation even in the host API, except where necessary f

(
        &self,
        mut store: impl AsContextMut,
        table_index: u32,
    )

Source from the content-addressed store, hash-verified

274 /// `None` is returned if guest-debugging is not enabled in the
275 /// engine configuration for this Store.
276 pub fn debug_table(
277 &self,
278 mut store: impl AsContextMut,
279 table_index: u32,
280 ) -> Option<crate::Table> {
281 self.debug_export(
282 store.as_context_mut().0,
283 TableIndex::from_bits(table_index).into(),
284 )
285 .and_then(|s| s.into_table())
286 }
287
288 /// Get access to a function within this instance's function index
289 /// space.

Callers 2

private_entity_accessFunction · 0.80
instance_get_tableMethod · 0.80

Calls 3

debug_exportMethod · 0.80
into_tableMethod · 0.80
as_context_mutMethod · 0.45

Tested by

no test coverage detected