Package org.freedesktop.wayland.raw
Class drand48_data
java.lang.Object
org.freedesktop.wayland.raw.drand48_data
struct drand48_data {
unsigned short __x[3];
unsigned short __old_x[3];
unsigned short __c;
unsigned short __init;
unsigned long long __a;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic long__a(MemorySegment struct) Getter for field:unsigned long long __astatic void__a(MemorySegment struct, long fieldValue) Setter for field:unsigned long long __astatic final ValueLayout.OfLongLayout for field:unsigned long long __astatic final longOffset for field:unsigned long long __astatic short__c(MemorySegment struct) Getter for field:unsigned short __cstatic void__c(MemorySegment struct, short fieldValue) Setter for field:unsigned short __cstatic final ValueLayout.OfShortLayout for field:unsigned short __cstatic final longOffset for field:unsigned short __cstatic short__init(MemorySegment struct) Getter for field:unsigned short __initstatic void__init(MemorySegment struct, short fieldValue) Setter for field:unsigned short __initstatic final ValueLayout.OfShortLayout for field:unsigned short __initstatic final longOffset for field:unsigned short __initstatic MemorySegment__old_x(MemorySegment struct) Getter for field:unsigned short __old_x[3]static short__old_x(MemorySegment struct, long index0) Indexed getter for field:unsigned short __old_x[3]static void__old_x(MemorySegment struct, long index0, short fieldValue) Indexed setter for field:unsigned short __old_x[3]static void__old_x(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned short __old_x[3]static long[]Dimensions for array field:unsigned short __old_x[3]static final SequenceLayoutLayout for field:unsigned short __old_x[3]static final longOffset for field:unsigned short __old_x[3]static MemorySegment__x(MemorySegment struct) Getter for field:unsigned short __x[3]static short__x(MemorySegment struct, long index0) Indexed getter for field:unsigned short __x[3]static void__x(MemorySegment struct, long index0, short fieldValue) Indexed setter for field:unsigned short __x[3]static void__x(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned short __x[3]static long[]Dimensions for array field:unsigned short __x[3]static final SequenceLayoutLayout for field:unsigned short __x[3]static final longOffset for field:unsigned short __x[3]static 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 -
__x$layout
Layout for field:unsigned short __x[3] -
__x$offset
public static final long __x$offset()Offset for field:unsigned short __x[3] -
__x
Getter for field:unsigned short __x[3] -
__x
Setter for field:unsigned short __x[3] -
__x$dimensions
public static long[] __x$dimensions()Dimensions for array field:unsigned short __x[3] -
__x
Indexed getter for field:unsigned short __x[3] -
__x
Indexed setter for field:unsigned short __x[3] -
__old_x$layout
Layout for field:unsigned short __old_x[3] -
__old_x$offset
public static final long __old_x$offset()Offset for field:unsigned short __old_x[3] -
__old_x
Getter for field:unsigned short __old_x[3] -
__old_x
Setter for field:unsigned short __old_x[3] -
__old_x$dimensions
public static long[] __old_x$dimensions()Dimensions for array field:unsigned short __old_x[3] -
__old_x
Indexed getter for field:unsigned short __old_x[3] -
__old_x
Indexed setter for field:unsigned short __old_x[3] -
__c$layout
Layout for field:unsigned short __c -
__c$offset
public static final long __c$offset()Offset for field:unsigned short __c -
__c
Getter for field:unsigned short __c -
__c
Setter for field:unsigned short __c -
__init$layout
Layout for field:unsigned short __init -
__init$offset
public static final long __init$offset()Offset for field:unsigned short __init -
__init
Getter for field:unsigned short __init -
__init
Setter for field:unsigned short __init -
__a$layout
Layout for field:unsigned long long __a -
__a$offset
public static final long __a$offset()Offset for field:unsigned long long __a -
__a
Getter for field:unsigned long long __a -
__a
Setter for field:unsigned long long __a -
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()
-