Class mln_runtime_options
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_runtime_options
struct mln_runtime_options {
uint32_t size;
uint32_t flags;
const char *asset_path;
const char *cache_path;
uint64_t maximum_cache_size;
}
-
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 MemorySegmentasset_path(MemorySegment struct) Getter for field:const char *asset_pathstatic voidasset_path(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *asset_pathstatic final AddressLayoutLayout for field:const char *asset_pathstatic final longOffset for field:const char *asset_pathstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcache_path(MemorySegment struct) Getter for field:const char *cache_pathstatic voidcache_path(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *cache_pathstatic final AddressLayoutLayout for field:const char *cache_pathstatic final longOffset for field:const char *cache_pathstatic intflags(MemorySegment struct) Getter for field:uint32_t flagsstatic voidflags(MemorySegment struct, int fieldValue) Setter for field:uint32_t flagsstatic final ValueLayout.OfIntLayout for field:uint32_t flagsstatic final longOffset for field:uint32_t flagsstatic final GroupLayoutlayout()The layout of this structstatic longmaximum_cache_size(MemorySegment struct) Getter for field:uint64_t maximum_cache_sizestatic voidmaximum_cache_size(MemorySegment struct, long fieldValue) Setter for field:uint64_t maximum_cache_sizestatic final ValueLayout.OfLongLayout for field:uint64_t maximum_cache_sizestatic final longOffset for field:uint64_t maximum_cache_sizestatic 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 intsize(MemorySegment struct) Getter for field:uint32_t sizestatic voidsize(MemorySegment struct, int fieldValue) Setter for field:uint32_t sizestatic final ValueLayout.OfIntLayout for field:uint32_t sizestatic final longOffset for field:uint32_t sizestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
size$layout
Layout for field:uint32_t size -
size$offset
public static final long size$offset()Offset for field:uint32_t size -
size
Getter for field:uint32_t size -
size
Setter for field:uint32_t size -
flags$layout
Layout for field:uint32_t flags -
flags$offset
public static final long flags$offset()Offset for field:uint32_t flags -
flags
Getter for field:uint32_t flags -
flags
Setter for field:uint32_t flags -
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
Getter for field:const char *asset_path -
asset_path
Setter for field:const char *asset_path -
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
Getter for field:const char *cache_path -
cache_path
Setter for field:const char *cache_path -
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
Getter for field:uint64_t maximum_cache_size -
maximum_cache_size
Setter for field:uint64_t maximum_cache_size -
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()
-