Class mln_lat_lng

java.lang.Object
org.maplibre.nativeffi.internal.c.mln_lat_lng

public class mln_lat_lng extends Object
struct mln_lat_lng {
    double latitude;
    double longitude;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • latitude$layout

      public static final ValueLayout.OfDouble latitude$layout()
      Layout for field:
      double latitude
      
    • latitude$offset

      public static final long latitude$offset()
      Offset for field:
      double latitude
      
    • latitude

      public static double latitude(MemorySegment struct)
      Getter for field:
      double latitude
      
    • latitude

      public static void latitude(MemorySegment struct, double fieldValue)
      Setter for field:
      double latitude
      
    • longitude$layout

      public static final ValueLayout.OfDouble longitude$layout()
      Layout for field:
      double longitude
      
    • longitude$offset

      public static final long longitude$offset()
      Offset for field:
      double longitude
      
    • longitude

      public static double longitude(MemorySegment struct)
      Getter for field:
      double longitude
      
    • longitude

      public static void longitude(MemorySegment struct, double fieldValue)
      Setter for field:
      double longitude
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()