Class CLMutableDispatchExecInfoKHR.Buffer

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

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

    • Buffer

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

    • param_name

      public int param_name()
      Returns:
      the value of the param_name field.
    • param_value_size

      public long param_value_size()
      Returns:
      the value of the param_value_size field.
    • param_value

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

      public CLMutableDispatchExecInfoKHR.Buffer param_name(int value)
      Sets the specified value to the param_name field.
    • param_value_size

      public CLMutableDispatchExecInfoKHR.Buffer param_value_size(long value)
      Sets the specified value to the param_value_size field.
    • param_value

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