Class random_data

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

public class random_data extends Object
struct random_data {
    int32_t *fptr;
    int32_t *rptr;
    int32_t *state;
    int rand_type;
    int rand_deg;
    int rand_sep;
    int32_t *end_ptr;
}
  • Method Details

    • layout

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

      public static final AddressLayout fptr$layout()
      Layout for field:
      int32_t *fptr
      
    • fptr$offset

      public static final long fptr$offset()
      Offset for field:
      int32_t *fptr
      
    • fptr

      public static MemorySegment fptr(MemorySegment struct)
      Getter for field:
      int32_t *fptr
      
    • fptr

      public static void fptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      int32_t *fptr
      
    • rptr$layout

      public static final AddressLayout rptr$layout()
      Layout for field:
      int32_t *rptr
      
    • rptr$offset

      public static final long rptr$offset()
      Offset for field:
      int32_t *rptr
      
    • rptr

      public static MemorySegment rptr(MemorySegment struct)
      Getter for field:
      int32_t *rptr
      
    • rptr

      public static void rptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      int32_t *rptr
      
    • state$layout

      public static final AddressLayout state$layout()
      Layout for field:
      int32_t *state
      
    • state$offset

      public static final long state$offset()
      Offset for field:
      int32_t *state
      
    • state

      public static MemorySegment state(MemorySegment struct)
      Getter for field:
      int32_t *state
      
    • state

      public static void state(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      int32_t *state
      
    • rand_type$layout

      public static final ValueLayout.OfInt rand_type$layout()
      Layout for field:
      int rand_type
      
    • rand_type$offset

      public static final long rand_type$offset()
      Offset for field:
      int rand_type
      
    • rand_type

      public static int rand_type(MemorySegment struct)
      Getter for field:
      int rand_type
      
    • rand_type

      public static void rand_type(MemorySegment struct, int fieldValue)
      Setter for field:
      int rand_type
      
    • rand_deg$layout

      public static final ValueLayout.OfInt rand_deg$layout()
      Layout for field:
      int rand_deg
      
    • rand_deg$offset

      public static final long rand_deg$offset()
      Offset for field:
      int rand_deg
      
    • rand_deg

      public static int rand_deg(MemorySegment struct)
      Getter for field:
      int rand_deg
      
    • rand_deg

      public static void rand_deg(MemorySegment struct, int fieldValue)
      Setter for field:
      int rand_deg
      
    • rand_sep$layout

      public static final ValueLayout.OfInt rand_sep$layout()
      Layout for field:
      int rand_sep
      
    • rand_sep$offset

      public static final long rand_sep$offset()
      Offset for field:
      int rand_sep
      
    • rand_sep

      public static int rand_sep(MemorySegment struct)
      Getter for field:
      int rand_sep
      
    • rand_sep

      public static void rand_sep(MemorySegment struct, int fieldValue)
      Setter for field:
      int rand_sep
      
    • end_ptr$layout

      public static final AddressLayout end_ptr$layout()
      Layout for field:
      int32_t *end_ptr
      
    • end_ptr$offset

      public static final long end_ptr$offset()
      Offset for field:
      int32_t *end_ptr
      
    • end_ptr

      public static MemorySegment end_ptr(MemorySegment struct)
      Getter for field:
      int32_t *end_ptr
      
    • end_ptr

      public static void end_ptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      int32_t *end_ptr
      
    • 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()