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 __a
static void
__a
(MemorySegment struct, long fieldValue) Setter for field:unsigned long long __a
static final ValueLayout.OfLong
Layout for field:unsigned long long __a
static final long
Offset for field:unsigned long long __a
static short
__c
(MemorySegment struct) Getter for field:unsigned short __c
static void
__c
(MemorySegment struct, short fieldValue) Setter for field:unsigned short __c
static final ValueLayout.OfShort
Layout for field:unsigned short __c
static final long
Offset for field:unsigned short __c
static short
__init
(MemorySegment struct) Getter for field:unsigned short __init
static void
__init
(MemorySegment struct, short fieldValue) Setter for field:unsigned short __init
static final ValueLayout.OfShort
Layout for field:unsigned short __init
static final long
Offset for field:unsigned short __init
static 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 SequenceLayout
Layout for field:unsigned short __old_x[3]
static final long
Offset 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 SequenceLayout
Layout for field:unsigned short __x[3]
static final long
Offset for field:unsigned short __x[3]
static MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static final GroupLayout
layout()
The layout of this structstatic MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-