Class _IO_cookie_io_functions_t
java.lang.Object
io.github.elebras1.flecs._IO_cookie_io_functions_t
- Direct Known Subclasses:
cookie_io_functions_t
struct _IO_cookie_io_functions_t {
cookie_read_function_t *read;
cookie_write_function_t *write;
cookie_seek_function_t *seek;
cookie_close_function_t *close;
}
-
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 MemorySegmentclose(MemorySegment struct) Getter for field:cookie_close_function_t *closestatic voidclose(MemorySegment struct, MemorySegment fieldValue) Setter for field:cookie_close_function_t *closestatic final AddressLayoutLayout for field:cookie_close_function_t *closestatic final longOffset for field:cookie_close_function_t *closestatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentread(MemorySegment struct) Getter for field:cookie_read_function_t *readstatic voidread(MemorySegment struct, MemorySegment fieldValue) Setter for field:cookie_read_function_t *readstatic final AddressLayoutLayout for field:cookie_read_function_t *readstatic final longOffset for field:cookie_read_function_t *readstatic 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 MemorySegmentseek(MemorySegment struct) Getter for field:cookie_seek_function_t *seekstatic voidseek(MemorySegment struct, MemorySegment fieldValue) Setter for field:cookie_seek_function_t *seekstatic final AddressLayoutLayout for field:cookie_seek_function_t *seekstatic final longOffset for field:cookie_seek_function_t *seekstatic longsizeof()The size (in bytes) of this structstatic MemorySegmentwrite(MemorySegment struct) Getter for field:cookie_write_function_t *writestatic voidwrite(MemorySegment struct, MemorySegment fieldValue) Setter for field:cookie_write_function_t *writestatic final AddressLayoutLayout for field:cookie_write_function_t *writestatic final longOffset for field:cookie_write_function_t *write
-
Method Details
-
layout
The layout of this struct -
read$layout
Layout for field:cookie_read_function_t *read -
read$offset
public static final long read$offset()Offset for field:cookie_read_function_t *read -
read
Getter for field:cookie_read_function_t *read -
read
Setter for field:cookie_read_function_t *read -
write$layout
Layout for field:cookie_write_function_t *write -
write$offset
public static final long write$offset()Offset for field:cookie_write_function_t *write -
write
Getter for field:cookie_write_function_t *write -
write
Setter for field:cookie_write_function_t *write -
seek$layout
Layout for field:cookie_seek_function_t *seek -
seek$offset
public static final long seek$offset()Offset for field:cookie_seek_function_t *seek -
seek
Getter for field:cookie_seek_function_t *seek -
seek
Setter for field:cookie_seek_function_t *seek -
close$layout
Layout for field:cookie_close_function_t *close -
close$offset
public static final long close$offset()Offset for field:cookie_close_function_t *close -
close
Getter for field:cookie_close_function_t *close -
close
Setter for field:cookie_close_function_t *close -
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()
-