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

Method new_ptr

pulley/src/interp.rs:455–459  ·  view source on GitHub ↗
(ptr: *mut T)

Source from the content-addressed store, hash-verified

453 }
454
455 pub fn new_ptr<T>(ptr: *mut T) -> Self {
456 let mut val = XRegVal::default();
457 val.set_ptr(ptr);
458 val
459 }
460
461 pub fn get_i32(&self) -> i32 {
462 let x = unsafe { self.0.i32 };

Callers

nothing calls this directly

Calls 1

set_ptrMethod · 0.80

Tested by

no test coverage detected