Class mln_map_options
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_map_options
struct mln_map_options {
uint32_t size;
uint32_t width;
uint32_t height;
double scale_factor;
uint32_t map_mode;
}
-
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 intheight(MemorySegment struct) Getter for field:uint32_t heightstatic voidheight(MemorySegment struct, int fieldValue) Setter for field:uint32_t heightstatic final ValueLayout.OfIntLayout for field:uint32_t heightstatic final longOffset for field:uint32_t heightstatic final GroupLayoutlayout()The layout of this structstatic intmap_mode(MemorySegment struct) Getter for field:uint32_t map_modestatic voidmap_mode(MemorySegment struct, int fieldValue) Setter for field:uint32_t map_modestatic final ValueLayout.OfIntLayout for field:uint32_t map_modestatic final longOffset for field:uint32_t map_modestatic 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 doublescale_factor(MemorySegment struct) Getter for field:double scale_factorstatic voidscale_factor(MemorySegment struct, double fieldValue) Setter for field:double scale_factorstatic final ValueLayout.OfDoubleLayout for field:double scale_factorstatic final longOffset for field:double scale_factorstatic 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 intwidth(MemorySegment struct) Getter for field:uint32_t widthstatic voidwidth(MemorySegment struct, int fieldValue) Setter for field:uint32_t widthstatic final ValueLayout.OfIntLayout for field:uint32_t widthstatic final longOffset for field:uint32_t width
-
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 -
width$layout
Layout for field:uint32_t width -
width$offset
public static final long width$offset()Offset for field:uint32_t width -
width
Getter for field:uint32_t width -
width
Setter for field:uint32_t width -
height$layout
Layout for field:uint32_t height -
height$offset
public static final long height$offset()Offset for field:uint32_t height -
height
Getter for field:uint32_t height -
height
Setter for field:uint32_t height -
scale_factor$layout
Layout for field:double scale_factor -
scale_factor$offset
public static final long scale_factor$offset()Offset for field:double scale_factor -
scale_factor
Getter for field:double scale_factor -
scale_factor
Setter for field:double scale_factor -
map_mode$layout
Layout for field:uint32_t map_mode -
map_mode$offset
public static final long map_mode$offset()Offset for field:uint32_t map_mode -
map_mode
Getter for field:uint32_t map_mode -
map_mode
Setter for field:uint32_t map_mode -
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()
-