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

Method write_data_addr

cranelift/module/src/data_context.rs:157–159  ·  view source on GitHub ↗

Write the address of `data` into the data at offset `offset`.

(&mut self, offset: CodeOffset, data: ir::GlobalValue, addend: Addend)

Source from the content-addressed store, hash-verified

155
156 /// Write the address of `data` into the data at offset `offset`.
157 pub fn write_data_addr(&mut self, offset: CodeOffset, data: ir::GlobalValue, addend: Addend) {
158 self.data_relocs.push((offset, data, addend))
159 }
160
161 /// An iterator over all relocations of the data object.
162 pub fn all_relocs<'a>(

Callers 1

basic_data_contextFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

basic_data_contextFunction · 0.64