Class IOURingCQE.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new IOURingCQE.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 IOURingCQE.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

    • user_data

      public long user_data()
      Returns:
      the value of the user_data field.
    • res

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

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

      public LongBuffer big_cqe()
      Returns:
      a LongBuffer view of the big_cqe field.
    • big_cqe

      public long big_cqe(int index)
      Returns:
      the value at the specified index of the big_cqe field.
    • user_data

      public IOURingCQE.Buffer user_data(long value)
      Sets the specified value to the user_data field.
    • res

      public IOURingCQE.Buffer res(int value)
      Sets the specified value to the res field.
    • flags

      public IOURingCQE.Buffer flags(int value)
      Sets the specified value to the flags field.
    • big_cqe

      public IOURingCQE.Buffer big_cqe(LongBuffer value)
      Copies the specified LongBuffer to the big_cqe field.
    • big_cqe

      public IOURingCQE.Buffer big_cqe(int index, long value)
      Sets the specified value at the specified index of the big_cqe field.