function asGCLeaf
source · line 116public
@NoGC
@Unsafe
@Intrinsic("fun_ptr_as_gc_leaf")
public fun <F> FunPtr<F>.asGCLeaf(): GCLeafFunPtr<F>
Extension receiver: FunPtr<F>
Treats the same native function address as a GC-leaf call target. The caller must ensure that every invocation satisfies the GC-leaf contract.
type parameter F
source · line 119public
F
parameter receiver
source · line 119public
FunPtr<F>