Class CUhostFn

All Implemented Interfaces:
AutoCloseable, CUhostFnI, CallbackI, NativeResource, Pointer

public abstract class CUhostFn extends Callback implements CUhostFnI

Type


 void (*CUhostFnI.invoke(long)) (
     void *userData
 )
  • Method Details

    • create

      public static CUhostFn create(long functionPointer)
      Creates a CUhostFn instance from the specified function pointer.
      Returns:
      the new CUhostFn
    • createSafe

      @Nullable public static CUhostFn createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static CUhostFn create(CUhostFnI instance)
      Creates a CUhostFn instance that delegates to the specified CUhostFnI instance.