Class mln_geometry_collection
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_geometry_collection
struct mln_geometry_collection {
const mln_geometry *geometries;
size_t geometry_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 MemorySegmentgeometries(MemorySegment struct) Getter for field:const mln_geometry *geometriesstatic voidgeometries(MemorySegment struct, MemorySegment fieldValue) Setter for field:const mln_geometry *geometriesstatic final AddressLayoutLayout for field:const mln_geometry *geometriesstatic final longOffset for field:const mln_geometry *geometriesstatic longgeometry_count(MemorySegment struct) Getter for field:size_t geometry_countstatic voidgeometry_count(MemorySegment struct, long fieldValue) Setter for field:size_t geometry_countstatic final ValueLayout.OfLongLayout for field:size_t geometry_countstatic final longOffset for field:size_t geometry_countstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
geometries$layout
Layout for field:const mln_geometry *geometries -
geometries$offset
public static final long geometries$offset()Offset for field:const mln_geometry *geometries -
geometries
Getter for field:const mln_geometry *geometries -
geometries
Setter for field:const mln_geometry *geometries -
geometry_count$layout
Layout for field:size_t geometry_count -
geometry_count$offset
public static final long geometry_count$offset()Offset for field:size_t geometry_count -
geometry_count
Getter for field:size_t geometry_count -
geometry_count
Setter for field:size_t geometry_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()
-