Package com.raylib.jextract
Class FilePathList
java.lang.Object
com.raylib.jextract.FilePathList
struct FilePathList {
unsigned int capacity;
unsigned int count;
char **paths;
}
-
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 intcapacity(MemorySegment struct) Getter for field:unsigned int capacitystatic voidcapacity(MemorySegment struct, int fieldValue) Setter for field:unsigned int capacitystatic final ValueLayout.OfIntLayout for field:unsigned int capacitystatic final longOffset for field:unsigned int capacitystatic intcount(MemorySegment struct) Getter for field:unsigned int countstatic voidcount(MemorySegment struct, int fieldValue) Setter for field:unsigned int countstatic final ValueLayout.OfIntLayout for field:unsigned int countstatic final longOffset for field:unsigned int countstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentpaths(MemorySegment struct) Getter for field:char **pathsstatic voidpaths(MemorySegment struct, MemorySegment fieldValue) Setter for field:char **pathsstatic final AddressLayoutLayout for field:char **pathsstatic final longOffset for field:char **pathsstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
capacity$layout
Layout for field:unsigned int capacity -
capacity$offset
public static final long capacity$offset()Offset for field:unsigned int capacity -
capacity
Getter for field:unsigned int capacity -
capacity
Setter for field:unsigned int capacity -
count$layout
Layout for field:unsigned int count -
count$offset
public static final long count$offset()Offset for field:unsigned int count -
count
Getter for field:unsigned int count -
count
Setter for field:unsigned int count -
paths$layout
Layout for field:char **paths -
paths$offset
public static final long paths$offset()Offset for field:char **paths -
paths
Getter for field:char **paths -
paths
Setter for field:char **paths -
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 targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-