Class IOURingFileIndexRange

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

public class IOURingFileIndexRange extends org.lwjgl.system.Struct<IOURingFileIndexRange> implements org.lwjgl.system.NativeResource
Argument for REGISTER_FILE_ALLOC_RANGE.

The range is specified as [off, off + len).

Layout


 struct io_uring_file_index_range {
     __u32 off;
     __u32 len;
     __u64 resv;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OFF
      The struct member offsets.
    • LEN

      public static final int LEN
      The struct member offsets.
    • RESV

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

    • IOURingFileIndexRange

      public IOURingFileIndexRange(ByteBuffer container)
      Creates a IOURingFileIndexRange 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<IOURingFileIndexRange>
    • off

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

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

      public long resv()
      Returns:
      the value of the resv field.
    • off

      public IOURingFileIndexRange off(int value)
      Sets the specified value to the off field.
    • len

      public IOURingFileIndexRange len(int value)
      Sets the specified value to the len field.
    • resv

      public IOURingFileIndexRange resv(long value)
      Sets the specified value to the resv field.
    • set

      public IOURingFileIndexRange set(int off, int len, long resv)
      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 IOURingFileIndexRange malloc()
      Returns a new IOURingFileIndexRange instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int noff(long struct)
      Unsafe version of off().
    • nlen

      public static int nlen(long struct)
      Unsafe version of len().
    • nresv

      public static long nresv(long struct)
      Unsafe version of resv().
    • noff

      public static void noff(long struct, int value)
      Unsafe version of off.
    • nlen

      public static void nlen(long struct, int value)
      Unsafe version of len.
    • nresv

      public static void nresv(long struct, long value)
      Unsafe version of resv.