Class mln_projected_meters
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_projected_meters
struct mln_projected_meters {
double northing;
double easting;
}
-
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 doubleeasting(MemorySegment struct) Getter for field:double eastingstatic voideasting(MemorySegment struct, double fieldValue) Setter for field:double eastingstatic final ValueLayout.OfDoubleLayout for field:double eastingstatic final longOffset for field:double eastingstatic final GroupLayoutlayout()The layout of this structstatic doublenorthing(MemorySegment struct) Getter for field:double northingstatic voidnorthing(MemorySegment struct, double fieldValue) Setter for field:double northingstatic final ValueLayout.OfDoubleLayout for field:double northingstatic final longOffset for field:double northingstatic 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 -
northing$layout
Layout for field:double northing -
northing$offset
public static final long northing$offset()Offset for field:double northing -
northing
Getter for field:double northing -
northing
Setter for field:double northing -
easting$layout
Layout for field:double easting -
easting$offset
public static final long easting$offset()Offset for field:double easting -
easting
Getter for field:double easting -
easting
Setter for field:double easting -
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()
-