Class mln_runtime_event

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

public class mln_runtime_event extends Object
struct mln_runtime_event {
    uint32_t size;
    uint32_t type;
    uint32_t source_type;
    void *source;
    int32_t code;
    uint32_t payload_type;
    const void *payload;
    size_t payload_size;
    const char *message;
    size_t message_size;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • size$layout

      public static final ValueLayout.OfInt size$layout()
      Layout for field:
      uint32_t size
      
    • size$offset

      public static final long size$offset()
      Offset for field:
      uint32_t size
      
    • size

      public static int size(MemorySegment struct)
      Getter for field:
      uint32_t size
      
    • size

      public static void size(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t size
      
    • type$layout

      public static final ValueLayout.OfInt type$layout()
      Layout for field:
      uint32_t type
      
    • type$offset

      public static final long type$offset()
      Offset for field:
      uint32_t type
      
    • type

      public static int type(MemorySegment struct)
      Getter for field:
      uint32_t type
      
    • type

      public static void type(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t type
      
    • source_type$layout

      public static final ValueLayout.OfInt source_type$layout()
      Layout for field:
      uint32_t source_type
      
    • source_type$offset

      public static final long source_type$offset()
      Offset for field:
      uint32_t source_type
      
    • source_type

      public static int source_type(MemorySegment struct)
      Getter for field:
      uint32_t source_type
      
    • source_type

      public static void source_type(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t source_type
      
    • source$layout

      public static final AddressLayout source$layout()
      Layout for field:
      void *source
      
    • source$offset

      public static final long source$offset()
      Offset for field:
      void *source
      
    • source

      public static MemorySegment source(MemorySegment struct)
      Getter for field:
      void *source
      
    • source

      public static void source(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *source
      
    • code$layout

      public static final ValueLayout.OfInt code$layout()
      Layout for field:
      int32_t code
      
    • code$offset

      public static final long code$offset()
      Offset for field:
      int32_t code
      
    • code

      public static int code(MemorySegment struct)
      Getter for field:
      int32_t code
      
    • code

      public static void code(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t code
      
    • payload_type$layout

      public static final ValueLayout.OfInt payload_type$layout()
      Layout for field:
      uint32_t payload_type
      
    • payload_type$offset

      public static final long payload_type$offset()
      Offset for field:
      uint32_t payload_type
      
    • payload_type

      public static int payload_type(MemorySegment struct)
      Getter for field:
      uint32_t payload_type
      
    • payload_type

      public static void payload_type(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t payload_type
      
    • payload$layout

      public static final AddressLayout payload$layout()
      Layout for field:
      const void *payload
      
    • payload$offset

      public static final long payload$offset()
      Offset for field:
      const void *payload
      
    • payload

      public static MemorySegment payload(MemorySegment struct)
      Getter for field:
      const void *payload
      
    • payload

      public static void payload(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const void *payload
      
    • payload_size$layout

      public static final ValueLayout.OfLong payload_size$layout()
      Layout for field:
      size_t payload_size
      
    • payload_size$offset

      public static final long payload_size$offset()
      Offset for field:
      size_t payload_size
      
    • payload_size

      public static long payload_size(MemorySegment struct)
      Getter for field:
      size_t payload_size
      
    • payload_size

      public static void payload_size(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t payload_size
      
    • message$layout

      public static final AddressLayout message$layout()
      Layout for field:
      const char *message
      
    • message$offset

      public static final long message$offset()
      Offset for field:
      const char *message
      
    • message

      public static MemorySegment message(MemorySegment struct)
      Getter for field:
      const char *message
      
    • message

      public static void message(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *message
      
    • message_size$layout

      public static final ValueLayout.OfLong message_size$layout()
      Layout for field:
      size_t message_size
      
    • message_size$offset

      public static final long message_size$offset()
      Offset for field:
      size_t message_size
      
    • message_size

      public static long message_size(MemorySegment struct)
      Getter for field:
      size_t message_size
      
    • message_size

      public static void message_size(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t message_size
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()