Class IOURingRegWait.Buffer

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

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

    • Buffer

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

    • ts

      public KernelTimespec ts()
      Returns:
      a KernelTimespec view of the ts field.
    • min_wait_usec

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

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

      public long sigmask()
      Returns:
      the value of the sigmask field.
    • sigmask_sz

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

      Copies the specified KernelTimespec to the ts field.
    • ts

      Passes the ts field to the specified Consumer.
    • min_wait_usec

      public IOURingRegWait.Buffer min_wait_usec(int value)
      Sets the specified value to the min_wait_usec field.
    • flags

      public IOURingRegWait.Buffer flags(int value)
      Sets the specified value to the flags field.
    • sigmask

      public IOURingRegWait.Buffer sigmask(long value)
      Sets the specified value to the sigmask field.
    • sigmask_sz

      public IOURingRegWait.Buffer sigmask_sz(int value)
      Sets the specified value to the sigmask_sz field.