Class _G_fpos64_t
java.lang.Object
io.github.elebras1.flecs._G_fpos64_t
- Direct Known Subclasses:
__fpos64_t
struct _G_fpos64_t {
__off64_t __pos;
__mbstate_t __state;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic long__pos(MemorySegment struct) Getter for field:__off64_t __posstatic void__pos(MemorySegment struct, long fieldValue) Setter for field:__off64_t __posstatic final ValueLayout.OfLongLayout for field:__off64_t __posstatic final longOffset for field:__off64_t __posstatic MemorySegment__state(MemorySegment struct) Getter for field:__mbstate_t __statestatic void__state(MemorySegment struct, MemorySegment fieldValue) Setter for field:__mbstate_t __statestatic final GroupLayoutLayout for field:__mbstate_t __statestatic final longOffset for field:__mbstate_t __statestatic 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 final GroupLayoutlayout()The layout of this structstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
__pos$layout
Layout for field:__off64_t __pos -
__pos$offset
public static final long __pos$offset()Offset for field:__off64_t __pos -
__pos
Getter for field:__off64_t __pos -
__pos
Setter for field:__off64_t __pos -
__state$layout
Layout for field:__mbstate_t __state -
__state$offset
public static final long __state$offset()Offset for field:__mbstate_t __state -
__state
Getter for field:__mbstate_t __state -
__state
Setter for field:__mbstate_t __state -
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()
-