(
cx: WasmtimeStoreContextMut<'_>,
val: u32,
out: &mut MaybeUninit<wasmtime_anyref_t>,
)
| 144 | |
| 145 | #[unsafe(no_mangle)] |
| 146 | pub extern "C" fn wasmtime_anyref_from_i31( |
| 147 | cx: WasmtimeStoreContextMut<'_>, |
| 148 | val: u32, |
| 149 | out: &mut MaybeUninit<wasmtime_anyref_t>, |
| 150 | ) { |
| 151 | let mut scope = RootScope::new(cx); |
| 152 | let anyref = AnyRef::from_i31(&mut scope, I31::wrapping_u32(val)); |
| 153 | let anyref = anyref.to_owned_rooted(&mut scope).expect("in scope"); |
| 154 | crate::initialize(out, Some(anyref).into()) |
| 155 | } |
| 156 | |
| 157 | #[unsafe(no_mangle)] |
| 158 | pub unsafe extern "C" fn wasmtime_anyref_is_i31( |
no test coverage detected