Class IOURingCloneBuffers.Buffer

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

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

    • Buffer

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

    • src_fd

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

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

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

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

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

      public IOURingCloneBuffers.Buffer src_fd(int value)
      Sets the specified value to the src_fd field.
    • flags

      public IOURingCloneBuffers.Buffer flags(int value)
      Sets the specified value to the flags field.
    • src_off

      public IOURingCloneBuffers.Buffer src_off(int value)
      Sets the specified value to the src_off field.
    • dst_off

      public IOURingCloneBuffers.Buffer dst_off(int value)
      Sets the specified value to the dst_off field.
    • nr

      public IOURingCloneBuffers.Buffer nr(int value)
      Sets the specified value to the nr field.