Class mln_feature
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_feature
struct mln_feature {
uint32_t size;
const mln_geometry *geometry;
const mln_json_member *properties;
size_t property_count;
uint32_t identifier_type;
union {
uint64_t uint_value;
int64_t int_value;
double double_value;
mln_string_view string_value;
} identifier;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classunion { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } -
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 MemorySegmentgeometry(MemorySegment struct) Getter for field:const mln_geometry *geometrystatic voidgeometry(MemorySegment struct, MemorySegment fieldValue) Setter for field:const mln_geometry *geometrystatic final AddressLayoutLayout for field:const mln_geometry *geometrystatic final longOffset for field:const mln_geometry *geometrystatic MemorySegmentidentifier(MemorySegment struct) Getter for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifierstatic voididentifier(MemorySegment struct, MemorySegment fieldValue) Setter for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifierstatic intidentifier_type(MemorySegment struct) Getter for field:uint32_t identifier_typestatic voididentifier_type(MemorySegment struct, int fieldValue) Setter for field:uint32_t identifier_typestatic final ValueLayout.OfIntLayout for field:uint32_t identifier_typestatic final longOffset for field:uint32_t identifier_typestatic final GroupLayoutLayout for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifierstatic final longOffset for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifierstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentproperties(MemorySegment struct) Getter for field:const mln_json_member *propertiesstatic voidproperties(MemorySegment struct, MemorySegment fieldValue) Setter for field:const mln_json_member *propertiesstatic final AddressLayoutLayout for field:const mln_json_member *propertiesstatic final longOffset for field:const mln_json_member *propertiesstatic longproperty_count(MemorySegment struct) Getter for field:size_t property_countstatic voidproperty_count(MemorySegment struct, long fieldValue) Setter for field:size_t property_countstatic final ValueLayout.OfLongLayout for field:size_t property_countstatic final longOffset for field:size_t property_countstatic 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 intsize(MemorySegment struct) Getter for field:uint32_t sizestatic voidsize(MemorySegment struct, int fieldValue) Setter for field:uint32_t sizestatic final ValueLayout.OfIntLayout for field:uint32_t sizestatic final longOffset for field:uint32_t sizestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
size$layout
Layout for field:uint32_t size -
size$offset
public static final long size$offset()Offset for field:uint32_t size -
size
Getter for field:uint32_t size -
size
Setter for field:uint32_t size -
geometry$layout
Layout for field:const mln_geometry *geometry -
geometry$offset
public static final long geometry$offset()Offset for field:const mln_geometry *geometry -
geometry
Getter for field:const mln_geometry *geometry -
geometry
Setter for field:const mln_geometry *geometry -
properties$layout
Layout for field:const mln_json_member *properties -
properties$offset
public static final long properties$offset()Offset for field:const mln_json_member *properties -
properties
Getter for field:const mln_json_member *properties -
properties
Setter for field:const mln_json_member *properties -
property_count$layout
Layout for field:size_t property_count -
property_count$offset
public static final long property_count$offset()Offset for field:size_t property_count -
property_count
Getter for field:size_t property_count -
property_count
Setter for field:size_t property_count -
identifier_type$layout
Layout for field:uint32_t identifier_type -
identifier_type$offset
public static final long identifier_type$offset()Offset for field:uint32_t identifier_type -
identifier_type
Getter for field:uint32_t identifier_type -
identifier_type
Setter for field:uint32_t identifier_type -
identifier$layout
Layout for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifier -
identifier$offset
public static final long identifier$offset()Offset for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifier -
identifier
Getter for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifier -
identifier
Setter for field:union { uint64_t uint_value; int64_t int_value; double double_value; mln_string_view string_value; } identifier -
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()
-