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

Method write_value_to

cranelift/codegen/src/data_value.rs:248–251  ·  view source on GitHub ↗

Write a [DataValue] to a memory location in native-endian byte order.

(&self, p: *mut u128)

Source from the content-addressed store, hash-verified

246
247 /// Write a [DataValue] to a memory location in native-endian byte order.
248 pub unsafe fn write_value_to(&self, p: *mut u128) {
249 let size = self.ty().bytes() as usize;
250 self.write_to_slice_ne(unsafe { core::slice::from_raw_parts_mut(p as *mut u8, size) });
251 }
252
253 /// Read a [DataValue] from a memory location using a given [Type] in native-endian byte order.
254 pub unsafe fn read_value_from(p: *const u128, ty: Type) -> Self {

Callers 1

make_argumentsMethod · 0.80

Calls 3

write_to_slice_neMethod · 0.80
bytesMethod · 0.45
tyMethod · 0.45

Tested by

no test coverage detected