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

Method get_data_decl

cranelift/module/src/module.rs:727–729  ·  view source on GitHub ↗

Get the `DataDeclaration` for the data object named by `name`.

(&self, data_id: DataId)

Source from the content-addressed store, hash-verified

725
726 /// Get the `DataDeclaration` for the data object named by `name`.
727 pub fn get_data_decl(&self, data_id: DataId) -> &DataDeclaration {
728 &self.data_objects[data_id]
729 }
730
731 /// Declare a function in this module.
732 pub fn declare_function(

Callers 5

get_addressMethod · 0.80
finalize_definitionsMethod · 0.80
define_dataMethod · 0.80
define_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected