Class IOURingClockRegister

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingClockRegister>
org.lwjgl.system.linux.liburing.IOURingClockRegister
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class IOURingClockRegister extends org.lwjgl.system.Struct<IOURingClockRegister> implements org.lwjgl.system.NativeResource

Layout


 struct io_uring_clock_register {
     __u32 clockid;
     __u32 __resv[3];
 }
  • Field Details

    • SIZEOF

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

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

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

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

    • IOURingClockRegister

      public IOURingClockRegister(ByteBuffer container)
      Creates a IOURingClockRegister 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<IOURingClockRegister>
    • clockid

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

      public IOURingClockRegister clockid(int value)
      Sets the specified value to the clockid field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingClockRegister.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingClockRegister.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
    • nclockid

      public static int nclockid(long struct)
      Unsafe version of clockid().
    • n__resv

      public static IntBuffer n__resv(long struct)
    • n__resv

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

      public static void nclockid(long struct, int value)
      Unsafe version of clockid.
    • n__resv

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

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