Class mln_geojson.data

java.lang.Object
org.maplibre.nativeffi.internal.c.mln_geojson.data
Enclosing class:
mln_geojson

public static class mln_geojson.data extends Object
union {
    const mln_geometry *geometry;
    const mln_feature *feature;
    mln_feature_collection feature_collection;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this union
    • geometry$layout

      public static final AddressLayout geometry$layout()
      Layout for field:
      const mln_geometry *geometry
      
    • geometry$offset

      public static final long geometry$offset()
      Offset for field:
      const mln_geometry *geometry
      
    • geometry

      public static MemorySegment geometry(MemorySegment union)
      Getter for field:
      const mln_geometry *geometry
      
    • geometry

      public static void geometry(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      const mln_geometry *geometry
      
    • feature$layout

      public static final AddressLayout feature$layout()
      Layout for field:
      const mln_feature *feature
      
    • feature$offset

      public static final long feature$offset()
      Offset for field:
      const mln_feature *feature
      
    • feature

      public static MemorySegment feature(MemorySegment union)
      Getter for field:
      const mln_feature *feature
      
    • feature

      public static void feature(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      const mln_feature *feature
      
    • feature_collection$layout

      public static final GroupLayout feature_collection$layout()
      Layout for field:
      mln_feature_collection feature_collection
      
    • feature_collection$offset

      public static final long feature_collection$offset()
      Offset for field:
      mln_feature_collection feature_collection
      
    • feature_collection

      public static MemorySegment feature_collection(MemorySegment union)
      Getter for field:
      mln_feature_collection feature_collection
      
    • feature_collection

      public static void feature_collection(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      mln_feature_collection feature_collection
      
    • 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 union
    • 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()