Class CUstreamBatchMemOpParams.Buffer

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

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

    • Buffer

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

    • operation

      public int operation()
      Returns:
      the value of the operation field.
    • waitValue_operation

      public int waitValue_operation()
      Returns:
      the value of the waitValue.operation field.
    • waitValue_address

      public long waitValue_address()
      Returns:
      the value of the waitValue.address field.
    • waitValue_value

      public int waitValue_value()
      Returns:
      the value of the waitValue.value field.
    • waitValue_value64

      public long waitValue_value64()
      Returns:
      the value of the waitValue.value64 field.
    • waitValue_flags

      public int waitValue_flags()
      Returns:
      the value of the waitValue.flags field.
    • waitValue_alias

      public long waitValue_alias()
      Returns:
      the value of the waitValue.alias field.
    • writeValue_operation

      public int writeValue_operation()
      Returns:
      the value of the writeValue.operation field.
    • writeValue_address

      public long writeValue_address()
      Returns:
      the value of the writeValue.address field.
    • writeValue_value

      public int writeValue_value()
      Returns:
      the value of the writeValue.value field.
    • writeValue_value64

      public long writeValue_value64()
      Returns:
      the value of the writeValue.value64 field.
    • writeValue_flags

      public int writeValue_flags()
      Returns:
      the value of the writeValue.flags field.
    • writeValue_alias

      public long writeValue_alias()
      Returns:
      the value of the writeValue.alias field.
    • flushRemoteWrites_operation

      public int flushRemoteWrites_operation()
      Returns:
      the value of the flushRemoteWrites.operation field.
    • flushRemoteWrites_flags

      public int flushRemoteWrites_flags()
      Returns:
      the value of the flushRemoteWrites.flags field.
    • memoryBarrier_operation

      public int memoryBarrier_operation()
      Returns:
      the value of the memoryBarrier.operation field.
    • memoryBarrier_flags

      public int memoryBarrier_flags()
      Returns:
      the value of the memoryBarrier.flags field.
    • pad

      public LongBuffer pad()
      Returns:
      a LongBuffer view of the pad field.
    • pad

      public long pad(int index)
      Returns:
      the value at the specified index of the pad field.
    • operation

      public CUstreamBatchMemOpParams.Buffer operation(int value)
      Sets the specified value to the operation field.
    • waitValue_operation

      public CUstreamBatchMemOpParams.Buffer waitValue_operation(int value)
      Sets the specified value to the operation field.
    • waitValue_address

      public CUstreamBatchMemOpParams.Buffer waitValue_address(long value)
      Sets the specified value to the address field.
    • waitValue_value

      public CUstreamBatchMemOpParams.Buffer waitValue_value(int value)
      Sets the specified value to the value field.
    • waitValue_value64

      public CUstreamBatchMemOpParams.Buffer waitValue_value64(long value)
      Sets the specified value to the value64 field.
    • waitValue_flags

      public CUstreamBatchMemOpParams.Buffer waitValue_flags(int value)
      Sets the specified value to the flags field.
    • waitValue_alias

      public CUstreamBatchMemOpParams.Buffer waitValue_alias(long value)
      Sets the specified value to the alias field.
    • writeValue_operation

      public CUstreamBatchMemOpParams.Buffer writeValue_operation(int value)
      Sets the specified value to the operation field.
    • writeValue_address

      public CUstreamBatchMemOpParams.Buffer writeValue_address(long value)
      Sets the specified value to the address field.
    • writeValue_value

      public CUstreamBatchMemOpParams.Buffer writeValue_value(int value)
      Sets the specified value to the value field.
    • writeValue_value64

      public CUstreamBatchMemOpParams.Buffer writeValue_value64(long value)
      Sets the specified value to the value64 field.
    • writeValue_flags

      public CUstreamBatchMemOpParams.Buffer writeValue_flags(int value)
      Sets the specified value to the flags field.
    • writeValue_alias

      public CUstreamBatchMemOpParams.Buffer writeValue_alias(long value)
      Sets the specified value to the alias field.
    • flushRemoteWrites_operation

      public CUstreamBatchMemOpParams.Buffer flushRemoteWrites_operation(int value)
      Sets the specified value to the operation field.
    • flushRemoteWrites_flags

      public CUstreamBatchMemOpParams.Buffer flushRemoteWrites_flags(int value)
      Sets the specified value to the flags field.
    • memoryBarrier_operation

      public CUstreamBatchMemOpParams.Buffer memoryBarrier_operation(int value)
      Sets the specified value to the operation field.
    • memoryBarrier_flags

      public CUstreamBatchMemOpParams.Buffer memoryBarrier_flags(int value)
      Sets the specified value to the flags field.
    • pad

      Copies the specified LongBuffer to the pad field.
    • pad

      public CUstreamBatchMemOpParams.Buffer pad(int index, long value)
      Sets the specified value at the specified index of the pad field.