Class mln_bound_options
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_bound_options
struct mln_bound_options {
uint32_t size;
uint32_t fields;
mln_lat_lng_bounds bounds;
double min_zoom;
double max_zoom;
double min_pitch;
double max_pitch;
}
-
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 MemorySegmentbounds(MemorySegment struct) Getter for field:mln_lat_lng_bounds boundsstatic voidbounds(MemorySegment struct, MemorySegment fieldValue) Setter for field:mln_lat_lng_bounds boundsstatic final GroupLayoutLayout for field:mln_lat_lng_bounds boundsstatic final longOffset for field:mln_lat_lng_bounds boundsstatic 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 doublemax_pitch(MemorySegment struct) Getter for field:double max_pitchstatic voidmax_pitch(MemorySegment struct, double fieldValue) Setter for field:double max_pitchstatic final ValueLayout.OfDoubleLayout for field:double max_pitchstatic final longOffset for field:double max_pitchstatic doublemax_zoom(MemorySegment struct) Getter for field:double max_zoomstatic voidmax_zoom(MemorySegment struct, double fieldValue) Setter for field:double max_zoomstatic final ValueLayout.OfDoubleLayout for field:double max_zoomstatic final longOffset for field:double max_zoomstatic doublemin_pitch(MemorySegment struct) Getter for field:double min_pitchstatic voidmin_pitch(MemorySegment struct, double fieldValue) Setter for field:double min_pitchstatic final ValueLayout.OfDoubleLayout for field:double min_pitchstatic final longOffset for field:double min_pitchstatic doublemin_zoom(MemorySegment struct) Getter for field:double min_zoomstatic voidmin_zoom(MemorySegment struct, double fieldValue) Setter for field:double min_zoomstatic final ValueLayout.OfDoubleLayout for field:double min_zoomstatic final longOffset for field:double min_zoomstatic 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 -
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 -
bounds$layout
Layout for field:mln_lat_lng_bounds bounds -
bounds$offset
public static final long bounds$offset()Offset for field:mln_lat_lng_bounds bounds -
bounds
Getter for field:mln_lat_lng_bounds bounds -
bounds
Setter for field:mln_lat_lng_bounds bounds -
min_zoom$layout
Layout for field:double min_zoom -
min_zoom$offset
public static final long min_zoom$offset()Offset for field:double min_zoom -
min_zoom
Getter for field:double min_zoom -
min_zoom
Setter for field:double min_zoom -
max_zoom$layout
Layout for field:double max_zoom -
max_zoom$offset
public static final long max_zoom$offset()Offset for field:double max_zoom -
max_zoom
Getter for field:double max_zoom -
max_zoom
Setter for field:double max_zoom -
min_pitch$layout
Layout for field:double min_pitch -
min_pitch$offset
public static final long min_pitch$offset()Offset for field:double min_pitch -
min_pitch
Getter for field:double min_pitch -
min_pitch
Setter for field:double min_pitch -
max_pitch$layout
Layout for field:double max_pitch -
max_pitch$offset
public static final long max_pitch$offset()Offset for field:double max_pitch -
max_pitch
Getter for field:double max_pitch -
max_pitch
Setter for field:double max_pitch -
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()
-