Class mln_unit_bezier
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_unit_bezier
struct mln_unit_bezier {
double x1;
double y1;
double x2;
double y2;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic doublex1(MemorySegment struct) Getter for field:double x1static voidx1(MemorySegment struct, double fieldValue) Setter for field:double x1static final ValueLayout.OfDoubleLayout for field:double x1static final longOffset for field:double x1static doublex2(MemorySegment struct) Getter for field:double x2static voidx2(MemorySegment struct, double fieldValue) Setter for field:double x2static final ValueLayout.OfDoubleLayout for field:double x2static final longOffset for field:double x2static doubley1(MemorySegment struct) Getter for field:double y1static voidy1(MemorySegment struct, double fieldValue) Setter for field:double y1static final ValueLayout.OfDoubleLayout for field:double y1static final longOffset for field:double y1static doubley2(MemorySegment struct) Getter for field:double y2static voidy2(MemorySegment struct, double fieldValue) Setter for field:double y2static final ValueLayout.OfDoubleLayout for field:double y2static final longOffset for field:double y2
-
Method Details
-
layout
The layout of this struct -
x1$layout
Layout for field:double x1 -
x1$offset
public static final long x1$offset()Offset for field:double x1 -
x1
Getter for field:double x1 -
x1
Setter for field:double x1 -
y1$layout
Layout for field:double y1 -
y1$offset
public static final long y1$offset()Offset for field:double y1 -
y1
Getter for field:double y1 -
y1
Setter for field:double y1 -
x2$layout
Layout for field:double x2 -
x2$offset
public static final long x2$offset()Offset for field:double x2 -
x2
Getter for field:double x2 -
x2
Setter for field:double x2 -
y2$layout
Layout for field:double y2 -
y2$offset
public static final long y2$offset()Offset for field:double y2 -
y2
Getter for field:double y2 -
y2
Setter for field:double y2 -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-