Class IOSQRingOffsets.Buffer

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

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

    • Buffer

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

    • head

      public int head()
      Returns:
      the value of the head field.
    • tail

      public int tail()
      Returns:
      the value of the tail field.
    • ring_mask

      public int ring_mask()
      Returns:
      the value of the ring_mask field.
    • ring_entries

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

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

      public int dropped()
      Returns:
      the value of the dropped field.
    • array

      public int array()
      Returns:
      the value of the array field.
    • user_addr

      public long user_addr()
      Returns:
      the value of the user_addr field.
    • head

      public IOSQRingOffsets.Buffer head(int value)
      Sets the specified value to the head field.
    • tail

      public IOSQRingOffsets.Buffer tail(int value)
      Sets the specified value to the tail field.
    • ring_mask

      public IOSQRingOffsets.Buffer ring_mask(int value)
      Sets the specified value to the ring_mask field.
    • ring_entries

      public IOSQRingOffsets.Buffer ring_entries(int value)
      Sets the specified value to the ring_entries field.
    • flags

      public IOSQRingOffsets.Buffer flags(int value)
      Sets the specified value to the flags field.
    • dropped

      public IOSQRingOffsets.Buffer dropped(int value)
      Sets the specified value to the dropped field.
    • array

      public IOSQRingOffsets.Buffer array(int value)
      Sets the specified value to the array field.
    • user_addr

      public IOSQRingOffsets.Buffer user_addr(long value)
      Sets the specified value to the user_addr field.