Class Callback

    • Method Detail

      • free

        public void free()
        Description copied from interface: NativeResource
        Frees any native resources held by this object.
        Specified by:
        free in interface NativeResource
      • get

        public static <T extends CallbackI> T get(long functionPointer)
        Converts the specified function pointer to the CallbackI instance associated with it.

        Type Parameters:
        T - the CallbackI instance type
        Parameters:
        functionPointer - a function pointer
        Returns:
        the CallbackI instance, or null if the function pointer is NULL.
      • free

        public static void free(long functionPointer)
        Frees any resources held by the specified function pointer.
        Parameters:
        functionPointer - the function pointer