Class mln_bound_options

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

public class mln_bound_options extends Object
struct mln_bound_options {
    uint32_t size;
    uint32_t fields;
    mln_lat_lng_bounds bounds;
    double min_zoom;
    double max_zoom;
    double min_pitch;
    double max_pitch;
}
  • 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
      
    • bounds$layout

      public static final GroupLayout bounds$layout()
      Layout for field:
      mln_lat_lng_bounds bounds
      
    • bounds$offset

      public static final long bounds$offset()
      Offset for field:
      mln_lat_lng_bounds bounds
      
    • bounds

      public static MemorySegment bounds(MemorySegment struct)
      Getter for field:
      mln_lat_lng_bounds bounds
      
    • bounds

      public static void bounds(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      mln_lat_lng_bounds bounds
      
    • min_zoom$layout

      public static final ValueLayout.OfDouble min_zoom$layout()
      Layout for field:
      double min_zoom
      
    • min_zoom$offset

      public static final long min_zoom$offset()
      Offset for field:
      double min_zoom
      
    • min_zoom

      public static double min_zoom(MemorySegment struct)
      Getter for field:
      double min_zoom
      
    • min_zoom

      public static void min_zoom(MemorySegment struct, double fieldValue)
      Setter for field:
      double min_zoom
      
    • max_zoom$layout

      public static final ValueLayout.OfDouble max_zoom$layout()
      Layout for field:
      double max_zoom
      
    • max_zoom$offset

      public static final long max_zoom$offset()
      Offset for field:
      double max_zoom
      
    • max_zoom

      public static double max_zoom(MemorySegment struct)
      Getter for field:
      double max_zoom
      
    • max_zoom

      public static void max_zoom(MemorySegment struct, double fieldValue)
      Setter for field:
      double max_zoom
      
    • min_pitch$layout

      public static final ValueLayout.OfDouble min_pitch$layout()
      Layout for field:
      double min_pitch
      
    • min_pitch$offset

      public static final long min_pitch$offset()
      Offset for field:
      double min_pitch
      
    • min_pitch

      public static double min_pitch(MemorySegment struct)
      Getter for field:
      double min_pitch
      
    • min_pitch

      public static void min_pitch(MemorySegment struct, double fieldValue)
      Setter for field:
      double min_pitch
      
    • max_pitch$layout

      public static final ValueLayout.OfDouble max_pitch$layout()
      Layout for field:
      double max_pitch
      
    • max_pitch$offset

      public static final long max_pitch$offset()
      Offset for field:
      double max_pitch
      
    • max_pitch

      public static double max_pitch(MemorySegment struct)
      Getter for field:
      double max_pitch
      
    • max_pitch

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