Class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer

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

public static class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer extends StructBuffer<CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer> implements NativeResource
  • Constructor Details

    • Buffer

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

    • params_fence_value

      public long params_fence_value()
      Returns:
      the value of the params.fence.value field.
    • params_nvSciSync_fence

      public long params_nvSciSync_fence()
      Returns:
      the value of the params.nvSciSync.fence field.
    • params_nvSciSync_reserved

      public long params_nvSciSync_reserved()
      Returns:
      the value of the params.nvSciSync.reserved field.
    • params_keyedMutex_key

      public long params_keyedMutex_key()
      Returns:
      the value of the params.keyedMutex.key field.
    • params_reserved

      public IntBuffer params_reserved()
      Returns:
      a IntBuffer view of the params.reserved field.
    • params_reserved

      public int params_reserved(int index)
      Returns:
      the value at the specified index of the params.reserved field.
    • flags

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

      public IntBuffer reserved()
      Returns:
      a IntBuffer view of the reserved field.
    • reserved

      public int reserved(int index)
      Returns:
      the value at the specified index of the reserved field.
    • params_fence_value

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer params_fence_value(long value)
      Sets the specified value to the value field.
    • params_nvSciSync_fence

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer params_nvSciSync_fence(long value)
      Sets the specified value to the fence field.
    • params_nvSciSync_reserved

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer params_nvSciSync_reserved(long value)
      Sets the specified value to the reserved field.
    • params_keyedMutex_key

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer params_keyedMutex_key(long value)
      Sets the specified value to the key field.
    • params_reserved

      Copies the specified IntBuffer to the reserved field.
    • params_reserved

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer params_reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.
    • flags

      Sets the specified value to the flags field.
    • reserved

      Copies the specified IntBuffer to the reserved field.
    • reserved

      public CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS.Buffer reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.