Class IOURingParams.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<IOURingParams>, NativeResource, Pointer
Enclosing class:
IOURingParams

public static class IOURingParams.Buffer extends StructBuffer<IOURingParams,IOURingParams.Buffer> implements NativeResource
An array of IOURingParams structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new IOURingParams.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by IOURingParams.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • sq_entries

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

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

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

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

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

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

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

      public IOSQRingOffsets sq_off()
      Returns:
      a IOSQRingOffsets view of the sq_off field.
    • cq_off

      public IOCQRingOffsets cq_off()
      Returns:
      a IOCQRingOffsets view of the cq_off field.
    • sq_entries

      public IOURingParams.Buffer sq_entries(int value)
      Sets the specified value to the sq_entries field.
    • cq_entries

      public IOURingParams.Buffer cq_entries(int value)
      Sets the specified value to the cq_entries field.
    • flags

      public IOURingParams.Buffer flags(int value)
      Sets the specified value to the flags field.
    • sq_thread_cpu

      public IOURingParams.Buffer sq_thread_cpu(int value)
      Sets the specified value to the sq_thread_cpu field.
    • sq_thread_idle

      public IOURingParams.Buffer sq_thread_idle(int value)
      Sets the specified value to the sq_thread_idle field.
    • features

      public IOURingParams.Buffer features(int value)
      Sets the specified value to the features field.
    • wq_fd

      public IOURingParams.Buffer wq_fd(int value)
      Sets the specified value to the wq_fd field.
    • sq_off

      public IOURingParams.Buffer sq_off(IOSQRingOffsets value)
      Copies the specified IOSQRingOffsets to the sq_off field.
    • sq_off

      public IOURingParams.Buffer sq_off(Consumer<IOSQRingOffsets> consumer)
      Passes the sq_off field to the specified Consumer.
    • cq_off

      public IOURingParams.Buffer cq_off(IOCQRingOffsets value)
      Copies the specified IOCQRingOffsets to the cq_off field.
    • cq_off

      public IOURingParams.Buffer cq_off(Consumer<IOCQRingOffsets> consumer)
      Passes the cq_off field to the specified Consumer.