import { Deno } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.deno.unstable.d.ts";
const { UnsafeFnPointer } = Deno;
UNSTABLE: New API, yet to be vetted.
An unsafe pointer to a function, for calling functions that are not present as symbols.
Constructors
new
UnsafeFnPointer(pointer: PointerObject<Fn>, definition: Const<Fn>)new
UnsafeFnPointer(pointer: PointerObject, definition: Const<Fn>)Type Parameters
Fn extends ForeignFunction
Properties
call: FromForeignFunction<Fn>
Call the foreign function.
definition: Fn
The definition of the function.
pointer: PointerObject<Fn>
The pointer to the function.