Class GCallback

java.lang.Object
app.photofox.vipsffm.jextract.GCallback

public class GCallback extends Object
typedef void (*GCallback)(void)
  • Method Details

    • descriptor

      public static FunctionDescriptor descriptor()
      The descriptor of this function pointer
    • allocate

      public static MemorySegment allocate(GCallback.Function fi, Arena arena)
      Allocates a new upcall stub, whose implementation is defined by fi. The lifetime of the returned segment is managed by arena
    • invoke

      public static void invoke(MemorySegment funcPtr)
      Invoke the upcall stub funcPtr, with given parameters