Class mln_lat_lng
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_lat_lng
struct mln_lat_lng {
double latitude;
double longitude;
}
-
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 doublelatitude(MemorySegment struct) Getter for field:double latitudestatic voidlatitude(MemorySegment struct, double fieldValue) Setter for field:double latitudestatic final ValueLayout.OfDoubleLayout for field:double latitudestatic final longOffset for field:double latitudestatic final GroupLayoutlayout()The layout of this structstatic doublelongitude(MemorySegment struct) Getter for field:double longitudestatic voidlongitude(MemorySegment struct, double fieldValue) Setter for field:double longitudestatic final ValueLayout.OfDoubleLayout for field:double longitudestatic final longOffset for field:double longitudestatic 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 longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
latitude$layout
Layout for field:double latitude -
latitude$offset
public static final long latitude$offset()Offset for field:double latitude -
latitude
Getter for field:double latitude -
latitude
Setter for field:double latitude -
longitude$layout
Layout for field:double longitude -
longitude$offset
public static final long longitude$offset()Offset for field:double longitude -
longitude
Getter for field:double longitude -
longitude
Setter for field:double longitude -
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()
-