Class mln_resource_provider

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

public class mln_resource_provider extends Object
struct mln_resource_provider {
    uint32_t size;
    mln_resource_provider_callback callback;
    void *user_data;
}
  • 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
      
    • callback$layout

      public static final AddressLayout callback$layout()
      Layout for field:
      mln_resource_provider_callback callback
      
    • callback$offset

      public static final long callback$offset()
      Offset for field:
      mln_resource_provider_callback callback
      
    • callback

      public static MemorySegment callback(MemorySegment struct)
      Getter for field:
      mln_resource_provider_callback callback
      
    • callback

      public static void callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_resource_provider_callback callback
      
    • user_data$layout

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

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

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

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