Class mln_queried_feature

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

public class mln_queried_feature extends Object
struct mln_queried_feature {
    uint32_t size;
    uint32_t fields;
    mln_feature feature;
    mln_string_view source_id;
    mln_string_view source_layer_id;
    const mln_json_value *state;
}
  • 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
      
    • fields$layout

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

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

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

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

      public static final GroupLayout feature$layout()
      Layout for field:
      mln_feature feature
      
    • feature$offset

      public static final long feature$offset()
      Offset for field:
      mln_feature feature
      
    • feature

      public static MemorySegment feature(MemorySegment struct)
      Getter for field:
      mln_feature feature
      
    • feature

      public static void feature(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_feature feature
      
    • source_id$layout

      public static final GroupLayout source_id$layout()
      Layout for field:
      mln_string_view source_id
      
    • source_id$offset

      public static final long source_id$offset()
      Offset for field:
      mln_string_view source_id
      
    • source_id

      public static MemorySegment source_id(MemorySegment struct)
      Getter for field:
      mln_string_view source_id
      
    • source_id

      public static void source_id(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_string_view source_id
      
    • source_layer_id$layout

      public static final GroupLayout source_layer_id$layout()
      Layout for field:
      mln_string_view source_layer_id
      
    • source_layer_id$offset

      public static final long source_layer_id$offset()
      Offset for field:
      mln_string_view source_layer_id
      
    • source_layer_id

      public static MemorySegment source_layer_id(MemorySegment struct)
      Getter for field:
      mln_string_view source_layer_id
      
    • source_layer_id

      public static void source_layer_id(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_string_view source_layer_id
      
    • state$layout

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

      public static final long state$offset()
      Offset for field:
      const mln_json_value *state
      
    • state

      public static MemorySegment state(MemorySegment struct)
      Getter for field:
      const mln_json_value *state
      
    • state

      public static void state(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const mln_json_value *state
      
    • 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()