Class IOURingZCRXOffsets

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingZCRXOffsets extends Struct<IOURingZCRXOffsets> implements NativeResource

 struct io_uring_zcrx_offsets {
     __u32 head;
     __u32 tail;
     __u32 rqes;
     __u32 __resv2;
     __u64 __resv[2];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TAIL

      public static final int TAIL
      The struct member offsets.
    • RQES

      public static final int RQES
      The struct member offsets.
    • __RESV2

      public static final int __RESV2
      The struct member offsets.
    • __RESV

      public static final int __RESV
      The struct member offsets.
  • Constructor Details

    • IOURingZCRXOffsets

      public IOURingZCRXOffsets(ByteBuffer container)
      Creates a IOURingZCRXOffsets instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<IOURingZCRXOffsets>
    • head

      public int head()
      Returns:
      the value of the head field.
    • tail

      public int tail()
      Returns:
      the value of the tail field.
    • rqes

      public int rqes()
      Returns:
      the value of the rqes field.
    • head

      public IOURingZCRXOffsets head(int value)
      Sets the specified value to the head field.
    • tail

      public IOURingZCRXOffsets tail(int value)
      Sets the specified value to the tail field.
    • rqes

      public IOURingZCRXOffsets rqes(int value)
      Sets the specified value to the rqes field.
    • set

      public IOURingZCRXOffsets set(int head, int tail, int rqes)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static IOURingZCRXOffsets malloc()
      Returns a new IOURingZCRXOffsets instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static IOURingZCRXOffsets calloc()
      Returns a new IOURingZCRXOffsets instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static IOURingZCRXOffsets create()
      Returns a new IOURingZCRXOffsets instance allocated with BufferUtils.
    • create

      public static IOURingZCRXOffsets create(long address)
      Returns a new IOURingZCRXOffsets instance for the specified memory address.
    • createSafe

      public static @Nullable IOURingZCRXOffsets createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingZCRXOffsets.Buffer malloc(int capacity)
      Returns a new IOURingZCRXOffsets.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static IOURingZCRXOffsets.Buffer calloc(int capacity)
      Returns a new IOURingZCRXOffsets.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingZCRXOffsets.Buffer create(int capacity)
      Returns a new IOURingZCRXOffsets.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingZCRXOffsets.Buffer create(long address, int capacity)
      Create a IOURingZCRXOffsets.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable IOURingZCRXOffsets.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingZCRXOffsets malloc(MemoryStack stack)
      Returns a new IOURingZCRXOffsets instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static IOURingZCRXOffsets calloc(MemoryStack stack)
      Returns a new IOURingZCRXOffsets instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static IOURingZCRXOffsets.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new IOURingZCRXOffsets.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static IOURingZCRXOffsets.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new IOURingZCRXOffsets.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nhead

      public static int nhead(long struct)
      Unsafe version of head().
    • ntail

      public static int ntail(long struct)
      Unsafe version of tail().
    • nrqes

      public static int nrqes(long struct)
      Unsafe version of rqes().
    • n__resv2

      public static int n__resv2(long struct)
    • n__resv

      public static LongBuffer n__resv(long struct)
    • n__resv

      public static long n__resv(long struct, int index)
    • nhead

      public static void nhead(long struct, int value)
      Unsafe version of head.
    • ntail

      public static void ntail(long struct, int value)
      Unsafe version of tail.
    • nrqes

      public static void nrqes(long struct, int value)
      Unsafe version of rqes.
    • n__resv2

      public static void n__resv2(long struct, int value)
    • n__resv

      public static void n__resv(long struct, LongBuffer value)
    • n__resv

      public static void n__resv(long struct, int index, long value)