Class drand48_data

java.lang.Object
com.github.elebras1.flecs.drand48_data

public class drand48_data extends Object
struct drand48_data {
    unsigned short __x[3];
    unsigned short __old_x[3];
    unsigned short __c;
    unsigned short __init;
    unsigned long long __a;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • __x$layout

      public static final SequenceLayout __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

      public static MemorySegment __x(MemorySegment struct)
      Getter for field:
      unsigned short __x[3]
      
    • __x

      public static void __x(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      unsigned short __x[3]
      
    • __x$dimensions

      public static long[] __x$dimensions()
      Dimensions for array field:
      unsigned short __x[3]
      
    • __x

      public static short __x(MemorySegment struct, long index0)
      Indexed getter for field:
      unsigned short __x[3]
      
    • __x

      public static void __x(MemorySegment struct, long index0, short fieldValue)
      Indexed setter for field:
      unsigned short __x[3]
      
    • __old_x$layout

      public static final SequenceLayout __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

      public static MemorySegment __old_x(MemorySegment struct)
      Getter for field:
      unsigned short __old_x[3]
      
    • __old_x

      public static void __old_x(MemorySegment struct, MemorySegment fieldValue)
      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

      public static short __old_x(MemorySegment struct, long index0)
      Indexed getter for field:
      unsigned short __old_x[3]
      
    • __old_x

      public static void __old_x(MemorySegment struct, long index0, short fieldValue)
      Indexed setter for field:
      unsigned short __old_x[3]
      
    • __c$layout

      public static final ValueLayout.OfShort __c$layout()
      Layout for field:
      unsigned short __c
      
    • __c$offset

      public static final long __c$offset()
      Offset for field:
      unsigned short __c
      
    • __c

      public static short __c(MemorySegment struct)
      Getter for field:
      unsigned short __c
      
    • __c

      public static void __c(MemorySegment struct, short fieldValue)
      Setter for field:
      unsigned short __c
      
    • __init$layout

      public static final ValueLayout.OfShort __init$layout()
      Layout for field:
      unsigned short __init
      
    • __init$offset

      public static final long __init$offset()
      Offset for field:
      unsigned short __init
      
    • __init

      public static short __init(MemorySegment struct)
      Getter for field:
      unsigned short __init
      
    • __init

      public static void __init(MemorySegment struct, short fieldValue)
      Setter for field:
      unsigned short __init
      
    • __a$layout

      public static final ValueLayout.OfLong __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

      public static long __a(MemorySegment struct)
      Getter for field:
      unsigned long long __a
      
    • __a

      public static void __a(MemorySegment struct, long fieldValue)
      Setter for field:
      unsigned long long __a
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()