@@ -1973,17 +1973,28 @@ internal static class Native
19731973 {
19741974 public delegate void Finalizer ( IntPtr data ) ;
19751975
1976- public unsafe delegate IntPtr WasmtimeFuncCallback ( IntPtr env , IntPtr caller , Value * args , UIntPtr nargs , Value * results , UIntPtr nresults ) ;
1976+ public unsafe delegate IntPtr WasmtimeFuncCallback ( IntPtr env , IntPtr caller , Value * args , nuint nargs , Value * results , nuint nresults ) ;
1977+
1978+ public unsafe delegate IntPtr WasmtimeFuncUncheckedCallback ( IntPtr env , IntPtr caller , ValueRaw * args_and_results , nuint num_args_and_results ) ;
19771979
19781980 [ DllImport ( Engine . LibraryName ) ]
19791981 public static extern void wasmtime_func_new ( IntPtr context , TypeHandle type , WasmtimeFuncCallback callback , IntPtr env , Finalizer ? finalizer , out ExternFunc func ) ;
19801982
19811983 [ DllImport ( Engine . LibraryName ) ]
1982- public static unsafe extern IntPtr wasmtime_func_call ( IntPtr context , in ExternFunc func , Value * args , UIntPtr nargs , Value * results , UIntPtr nresults , out IntPtr trap ) ;
1984+ public static extern void wasmtime_func_new_unchecked ( IntPtr context , TypeHandle type , WasmtimeFuncUncheckedCallback callback , IntPtr env , Finalizer ? finalizer , out ExternFunc func ) ;
1985+
1986+ [ DllImport ( Engine . LibraryName ) ]
1987+ public static unsafe extern IntPtr wasmtime_func_call ( IntPtr context , in ExternFunc func , Value * args , nuint nargs , Value * results , nuint nresults , out IntPtr trap ) ;
19831988
19841989 [ DllImport ( Engine . LibraryName ) ]
19851990 public static unsafe extern IntPtr wasmtime_func_type ( IntPtr context , in ExternFunc func ) ;
19861991
1992+ [ DllImport ( Engine . LibraryName ) ]
1993+ public static unsafe extern void wasmtime_func_from_raw ( IntPtr context , nuint raw , out ExternFunc func ) ;
1994+
1995+ [ DllImport ( Engine . LibraryName ) ]
1996+ public static unsafe extern nuint wasmtime_func_to_raw ( IntPtr context , in ExternFunc func ) ;
1997+
19871998 [ DllImport ( Engine . LibraryName ) ]
19881999 public static extern IntPtr wasm_functype_new ( in ValueTypeArray parameters , in ValueTypeArray results ) ;
19892000
0 commit comments