Class mln_log_callback

java.lang.Object
org.maplibre.nativeffi.internal.c.mln_log_callback

public final class mln_log_callback extends Object
typedef uint32_t (*mln_log_callback)(void *, uint32_t, uint32_t, int64_t, const char *)
  • Method Details

    • descriptor

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

      public static MemorySegment allocate(mln_log_callback.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 int invoke(MemorySegment funcPtr, MemorySegment user_data, int severity, int event, long code, MemorySegment message)
      Invoke the upcall stub funcPtr, with given parameters