Class mln_runtime_options

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

public class mln_runtime_options extends Object
struct mln_runtime_options {
    uint32_t size;
    uint32_t flags;
    const char *asset_path;
    const char *cache_path;
    uint64_t maximum_cache_size;
}
  • Method Details

    • layout

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

      public static final ValueLayout.OfInt size$layout()
      Layout for field:
      uint32_t size
      
    • size$offset

      public static final long size$offset()
      Offset for field:
      uint32_t size
      
    • size

      public static int size(MemorySegment struct)
      Getter for field:
      uint32_t size
      
    • size

      public static void size(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t size
      
    • flags$layout

      public static final ValueLayout.OfInt flags$layout()
      Layout for field:
      uint32_t flags
      
    • flags$offset

      public static final long flags$offset()
      Offset for field:
      uint32_t flags
      
    • flags

      public static int flags(MemorySegment struct)
      Getter for field:
      uint32_t flags
      
    • flags

      public static void flags(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t flags
      
    • asset_path$layout

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

      public static final long asset_path$offset()
      Offset for field:
      const char *asset_path
      
    • asset_path

      public static MemorySegment asset_path(MemorySegment struct)
      Getter for field:
      const char *asset_path
      
    • asset_path

      public static void asset_path(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *asset_path
      
    • cache_path$layout

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

      public static final long cache_path$offset()
      Offset for field:
      const char *cache_path
      
    • cache_path

      public static MemorySegment cache_path(MemorySegment struct)
      Getter for field:
      const char *cache_path
      
    • cache_path

      public static void cache_path(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *cache_path
      
    • maximum_cache_size$layout

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

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

      public static long maximum_cache_size(MemorySegment struct)
      Getter for field:
      uint64_t maximum_cache_size
      
    • maximum_cache_size

      public static void maximum_cache_size(MemorySegment struct, long fieldValue)
      Setter for field:
      uint64_t maximum_cache_size
      
    • 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()