Class mln_tile_id
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_tile_id
struct mln_tile_id {
uint32_t overscaled_z;
int32_t wrap;
uint32_t canonical_z;
uint32_t canonical_x;
uint32_t canonical_y;
}
-
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 MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intcanonical_x(MemorySegment struct) Getter for field:uint32_t canonical_xstatic voidcanonical_x(MemorySegment struct, int fieldValue) Setter for field:uint32_t canonical_xstatic final ValueLayout.OfIntLayout for field:uint32_t canonical_xstatic final longOffset for field:uint32_t canonical_xstatic intcanonical_y(MemorySegment struct) Getter for field:uint32_t canonical_ystatic voidcanonical_y(MemorySegment struct, int fieldValue) Setter for field:uint32_t canonical_ystatic final ValueLayout.OfIntLayout for field:uint32_t canonical_ystatic final longOffset for field:uint32_t canonical_ystatic intcanonical_z(MemorySegment struct) Getter for field:uint32_t canonical_zstatic voidcanonical_z(MemorySegment struct, int fieldValue) Setter for field:uint32_t canonical_zstatic final ValueLayout.OfIntLayout for field:uint32_t canonical_zstatic final longOffset for field:uint32_t canonical_zstatic final GroupLayoutlayout()The layout of this structstatic intoverscaled_z(MemorySegment struct) Getter for field:uint32_t overscaled_zstatic voidoverscaled_z(MemorySegment struct, int fieldValue) Setter for field:uint32_t overscaled_zstatic final ValueLayout.OfIntLayout for field:uint32_t overscaled_zstatic final longOffset for field:uint32_t overscaled_zstatic 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 longsizeof()The size (in bytes) of this structstatic intwrap(MemorySegment struct) Getter for field:int32_t wrapstatic voidwrap(MemorySegment struct, int fieldValue) Setter for field:int32_t wrapstatic final ValueLayout.OfIntLayout for field:int32_t wrapstatic final longOffset for field:int32_t wrap
-
Method Details
-
layout
The layout of this struct -
overscaled_z$layout
Layout for field:uint32_t overscaled_z -
overscaled_z$offset
public static final long overscaled_z$offset()Offset for field:uint32_t overscaled_z -
overscaled_z
Getter for field:uint32_t overscaled_z -
overscaled_z
Setter for field:uint32_t overscaled_z -
wrap$layout
Layout for field:int32_t wrap -
wrap$offset
public static final long wrap$offset()Offset for field:int32_t wrap -
wrap
Getter for field:int32_t wrap -
wrap
Setter for field:int32_t wrap -
canonical_z$layout
Layout for field:uint32_t canonical_z -
canonical_z$offset
public static final long canonical_z$offset()Offset for field:uint32_t canonical_z -
canonical_z
Getter for field:uint32_t canonical_z -
canonical_z
Setter for field:uint32_t canonical_z -
canonical_x$layout
Layout for field:uint32_t canonical_x -
canonical_x$offset
public static final long canonical_x$offset()Offset for field:uint32_t canonical_x -
canonical_x
Getter for field:uint32_t canonical_x -
canonical_x
Setter for field:uint32_t canonical_x -
canonical_y$layout
Layout for field:uint32_t canonical_y -
canonical_y$offset
public static final long canonical_y$offset()Offset for field:uint32_t canonical_y -
canonical_y
Getter for field:uint32_t canonical_y -
canonical_y
Setter for field:uint32_t canonical_y -
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()
-