Class mln_edge_insets
java.lang.Object
org.maplibre.nativeffi.internal.c.mln_edge_insets
struct mln_edge_insets {
double top;
double left;
double bottom;
double right;
}
-
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 doublebottom(MemorySegment struct) Getter for field:double bottomstatic voidbottom(MemorySegment struct, double fieldValue) Setter for field:double bottomstatic final ValueLayout.OfDoubleLayout for field:double bottomstatic final longOffset for field:double bottomstatic final GroupLayoutlayout()The layout of this structstatic doubleleft(MemorySegment struct) Getter for field:double leftstatic voidleft(MemorySegment struct, double fieldValue) Setter for field:double leftstatic final ValueLayout.OfDoubleLayout for field:double leftstatic final longOffset for field:double leftstatic 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 doubleright(MemorySegment struct) Getter for field:double rightstatic voidright(MemorySegment struct, double fieldValue) Setter for field:double rightstatic final ValueLayout.OfDoubleLayout for field:double rightstatic final longOffset for field:double rightstatic longsizeof()The size (in bytes) of this structstatic doubletop(MemorySegment struct) Getter for field:double topstatic voidtop(MemorySegment struct, double fieldValue) Setter for field:double topstatic final ValueLayout.OfDoubleLayout for field:double topstatic final longOffset for field:double top
-
Method Details
-
layout
The layout of this struct -
top$layout
Layout for field:double top -
top$offset
public static final long top$offset()Offset for field:double top -
top
Getter for field:double top -
top
Setter for field:double top -
left$layout
Layout for field:double left -
left$offset
public static final long left$offset()Offset for field:double left -
left
Getter for field:double left -
left
Setter for field:double left -
bottom$layout
Layout for field:double bottom -
bottom$offset
public static final long bottom$offset()Offset for field:double bottom -
bottom
Getter for field:double bottom -
bottom
Setter for field:double bottom -
right$layout
Layout for field:double right -
right$offset
public static final long right$offset()Offset for field:double right -
right
Getter for field:double right -
right
Setter for field:double right -
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()
-