NativeHandleInvoke1<R, P extends NativeType> extension

Convenience extension to invoke a 1-argument C function taking Pointer<P> with a NativeHandle.

final pkey = NativeHandle(EVP_PKEY_new(), addresses.EVP_PKEY_free);
final keyId = EVP_PKEY_id.invoke(pkey);
on

Methods

invoke(NativeHandle<P> handle) → R

Available on R Function(Pointer<P>), provided by the NativeHandleInvoke1 extension

Invokes this with the unwrapped pointer from handle.