Class mln_unit_bezier

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

public class mln_unit_bezier extends Object
struct mln_unit_bezier {
    double x1;
    double y1;
    double x2;
    double y2;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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