Class mln_projection_mode
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_projection_mode
struct mln_projection_mode {
uint32_t size;
uint32_t fields;
bool axonometric;
double x_skew;
double y_skew;
}
-
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 booleanaxonometric(MemorySegment struct) Getter for field:bool axonometricstatic voidaxonometric(MemorySegment struct, boolean fieldValue) Setter for field:bool axonometricstatic final ValueLayout.OfBooleanLayout for field:bool axonometricstatic final longOffset for field:bool axonometricstatic 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 doublex_skew(MemorySegment struct) Getter for field:double x_skewstatic voidx_skew(MemorySegment struct, double fieldValue) Setter for field:double x_skewstatic final ValueLayout.OfDoubleLayout for field:double x_skewstatic final longOffset for field:double x_skewstatic doubley_skew(MemorySegment struct) Getter for field:double y_skewstatic voidy_skew(MemorySegment struct, double fieldValue) Setter for field:double y_skewstatic final ValueLayout.OfDoubleLayout for field:double y_skewstatic final longOffset for field:double y_skew
-
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 -
axonometric$layout
Layout for field:bool axonometric -
axonometric$offset
public static final long axonometric$offset()Offset for field:bool axonometric -
axonometric
Getter for field:bool axonometric -
axonometric
Setter for field:bool axonometric -
x_skew$layout
Layout for field:double x_skew -
x_skew$offset
public static final long x_skew$offset()Offset for field:double x_skew -
x_skew
Getter for field:double x_skew -
x_skew
Setter for field:double x_skew -
y_skew$layout
Layout for field:double y_skew -
y_skew$offset
public static final long y_skew$offset()Offset for field:double y_skew -
y_skew
Getter for field:double y_skew -
y_skew
Setter for field:double y_skew -
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()
-