Class mln_json_value.data

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

public static class mln_json_value.data extends Object
union {
    bool bool_value;
    uint64_t uint_value;
    int64_t int_value;
    double double_value;
    mln_string_view string_value;
    mln_json_array array_value;
    mln_json_object object_value;
}
  • Method Details

    • layout

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

      public static final ValueLayout.OfBoolean bool_value$layout()
      Layout for field:
      bool bool_value
      
    • bool_value$offset

      public static final long bool_value$offset()
      Offset for field:
      bool bool_value
      
    • bool_value

      public static boolean bool_value(MemorySegment union)
      Getter for field:
      bool bool_value
      
    • bool_value

      public static void bool_value(MemorySegment union, boolean fieldValue)
      Setter for field:
      bool bool_value
      
    • uint_value$layout

      public static final ValueLayout.OfLong uint_value$layout()
      Layout for field:
      uint64_t uint_value
      
    • uint_value$offset

      public static final long uint_value$offset()
      Offset for field:
      uint64_t uint_value
      
    • uint_value

      public static long uint_value(MemorySegment union)
      Getter for field:
      uint64_t uint_value
      
    • uint_value

      public static void uint_value(MemorySegment union, long fieldValue)
      Setter for field:
      uint64_t uint_value
      
    • int_value$layout

      public static final ValueLayout.OfLong int_value$layout()
      Layout for field:
      int64_t int_value
      
    • int_value$offset

      public static final long int_value$offset()
      Offset for field:
      int64_t int_value
      
    • int_value

      public static long int_value(MemorySegment union)
      Getter for field:
      int64_t int_value
      
    • int_value

      public static void int_value(MemorySegment union, long fieldValue)
      Setter for field:
      int64_t int_value
      
    • double_value$layout

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

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

      public static double double_value(MemorySegment union)
      Getter for field:
      double double_value
      
    • double_value

      public static void double_value(MemorySegment union, double fieldValue)
      Setter for field:
      double double_value
      
    • string_value$layout

      public static final GroupLayout string_value$layout()
      Layout for field:
      mln_string_view string_value
      
    • string_value$offset

      public static final long string_value$offset()
      Offset for field:
      mln_string_view string_value
      
    • string_value

      public static MemorySegment string_value(MemorySegment union)
      Getter for field:
      mln_string_view string_value
      
    • string_value

      public static void string_value(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      mln_string_view string_value
      
    • array_value$layout

      public static final GroupLayout array_value$layout()
      Layout for field:
      mln_json_array array_value
      
    • array_value$offset

      public static final long array_value$offset()
      Offset for field:
      mln_json_array array_value
      
    • array_value

      public static MemorySegment array_value(MemorySegment union)
      Getter for field:
      mln_json_array array_value
      
    • array_value

      public static void array_value(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      mln_json_array array_value
      
    • object_value$layout

      public static final GroupLayout object_value$layout()
      Layout for field:
      mln_json_object object_value
      
    • object_value$offset

      public static final long object_value$offset()
      Offset for field:
      mln_json_object object_value
      
    • object_value

      public static MemorySegment object_value(MemorySegment union)
      Getter for field:
      mln_json_object object_value
      
    • object_value

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