Class mln_polygon_geometry
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_polygon_geometry
struct mln_polygon_geometry {
const mln_coordinate_span *rings;
size_t ring_count;
}
-
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 longring_count(MemorySegment struct) Getter for field:size_t ring_countstatic voidring_count(MemorySegment struct, long fieldValue) Setter for field:size_t ring_countstatic final ValueLayout.OfLongLayout for field:size_t ring_countstatic final longOffset for field:size_t ring_countstatic MemorySegmentrings(MemorySegment struct) Getter for field:const mln_coordinate_span *ringsstatic voidrings(MemorySegment struct, MemorySegment fieldValue) Setter for field:const mln_coordinate_span *ringsstatic final AddressLayoutLayout for field:const mln_coordinate_span *ringsstatic final longOffset for field:const mln_coordinate_span *ringsstatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
rings$layout
Layout for field:const mln_coordinate_span *rings -
rings$offset
public static final long rings$offset()Offset for field:const mln_coordinate_span *rings -
rings
Getter for field:const mln_coordinate_span *rings -
rings
Setter for field:const mln_coordinate_span *rings -
ring_count$layout
Layout for field:size_t ring_count -
ring_count$offset
public static final long ring_count$offset()Offset for field:size_t ring_count -
ring_count
Getter for field:size_t ring_count -
ring_count
Setter for field:size_t ring_count -
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()
-