Class CLMutableDispatchArgKHR.Buffer

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

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

    • Buffer

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

    • arg_index

      public int arg_index()
      Returns:
      the value of the arg_index field.
    • arg_size

      public long arg_size()
      Returns:
      the value of the arg_size field.
    • arg_value

      public @Nullable ByteBuffer arg_value()
      Returns:
      a ByteBuffer view of the data pointed to by the arg_value field.
    • arg_index

      public CLMutableDispatchArgKHR.Buffer arg_index(int value)
      Sets the specified value to the arg_index field.
    • arg_size

      public CLMutableDispatchArgKHR.Buffer arg_size(long value)
      Sets the specified value to the arg_size field.
    • arg_value

      public CLMutableDispatchArgKHR.Buffer arg_value(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the arg_value field.