Class mln_queried_feature
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_queried_feature
struct mln_queried_feature {
uint32_t size;
uint32_t fields;
mln_feature feature;
mln_string_view source_id;
mln_string_view source_layer_id;
const mln_json_value *state;
}
-
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 MemorySegmentfeature(MemorySegment struct) Getter for field:mln_feature featurestatic voidfeature(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_feature featurestatic final GroupLayoutLayout for field:mln_feature featurestatic final longOffset for field:mln_feature featurestatic intfields(MemorySegment struct) Getter for field:uint32_t fieldsstatic voidfields(MemorySegment struct, int fieldValue) Setter for field:uint32_t fieldsstatic final ValueLayout.OfIntLayout for field:uint32_t fieldsstatic final longOffset for field:uint32_t fieldsstatic 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 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 structstatic MemorySegmentsource_id(MemorySegment struct) Getter for field:mln_string_view source_idstatic voidsource_id(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_string_view source_idstatic final GroupLayoutLayout for field:mln_string_view source_idstatic final longOffset for field:mln_string_view source_idstatic MemorySegmentsource_layer_id(MemorySegment struct) Getter for field:mln_string_view source_layer_idstatic voidsource_layer_id(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_string_view source_layer_idstatic final GroupLayoutLayout for field:mln_string_view source_layer_idstatic final longOffset for field:mln_string_view source_layer_idstatic MemorySegmentstate(MemorySegment struct) Getter for field:const mln_json_value *statestatic voidstate(MemorySegment struct, MemorySegment fieldValue) Setter for field:const mln_json_value *statestatic final AddressLayoutLayout for field:const mln_json_value *statestatic final longOffset for field:const mln_json_value *state
-
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 -
fields$layout
Layout for field:uint32_t fields -
fields$offset
public static final long fields$offset()Offset for field:uint32_t fields -
fields
Getter for field:uint32_t fields -
fields
Setter for field:uint32_t fields -
feature$layout
Layout for field:mln_feature feature -
feature$offset
public static final long feature$offset()Offset for field:mln_feature feature -
feature
Getter for field:mln_feature feature -
feature
Setter for field:mln_feature feature -
source_id$layout
Layout for field:mln_string_view source_id -
source_id$offset
public static final long source_id$offset()Offset for field:mln_string_view source_id -
source_id
Getter for field:mln_string_view source_id -
source_id
Setter for field:mln_string_view source_id -
source_layer_id$layout
Layout for field:mln_string_view source_layer_id -
source_layer_id$offset
public static final long source_layer_id$offset()Offset for field:mln_string_view source_layer_id -
source_layer_id
Getter for field:mln_string_view source_layer_id -
source_layer_id
Setter for field:mln_string_view source_layer_id -
state$layout
Layout for field:const mln_json_value *state -
state$offset
public static final long state$offset()Offset for field:const mln_json_value *state -
state
Getter for field:const mln_json_value *state -
state
Setter for field:const mln_json_value *state -
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()
-