Class CUctxCigParam

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUctxCigParam>
org.lwjgl.cuda.CUctxCigParam
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUctxCigParam extends org.lwjgl.system.Struct<CUctxCigParam> implements org.lwjgl.system.NativeResource

Layout


 struct CUctxCigParam {
     CUtensorMapDataType sharedDataType;
     void * sharedData;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SHAREDDATATYPE

      public static final int SHAREDDATATYPE
      The struct member offsets.
    • SHAREDDATA

      public static final int SHAREDDATA
      The struct member offsets.
  • Constructor Details

    • CUctxCigParam

      public CUctxCigParam(ByteBuffer container)
      Creates a CUctxCigParam instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUctxCigParam>
    • sharedDataType

      public int sharedDataType()
      Returns:
      the value of the sharedDataType field.
    • sharedData

      public long sharedData()
      Returns:
      the value of the sharedData field.
    • sharedDataType

      public CUctxCigParam sharedDataType(int value)
      Sets the specified value to the sharedDataType field.
    • sharedData

      public CUctxCigParam sharedData(long value)
      Sets the specified value to the sharedData field.
    • set

      public CUctxCigParam set(int sharedDataType, long sharedData)
      Initializes this struct with the specified values.
    • set

      public CUctxCigParam set(CUctxCigParam src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static CUctxCigParam malloc()
      Returns a new CUctxCigParam instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static CUctxCigParam calloc()
      Returns a new CUctxCigParam instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static CUctxCigParam create()
      Returns a new CUctxCigParam instance allocated with BufferUtils.
    • create

      public static CUctxCigParam create(long address)
      Returns a new CUctxCigParam instance for the specified memory address.
    • createSafe

      public static @Nullable CUctxCigParam createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUctxCigParam.Buffer malloc(int capacity)
      Returns a new CUctxCigParam.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CUctxCigParam.Buffer calloc(int capacity)
      Returns a new CUctxCigParam.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUctxCigParam.Buffer create(int capacity)
      Returns a new CUctxCigParam.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUctxCigParam.Buffer create(long address, int capacity)
      Create a CUctxCigParam.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CUctxCigParam.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUctxCigParam malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUctxCigParam instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static CUctxCigParam calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUctxCigParam instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static CUctxCigParam.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUctxCigParam.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static CUctxCigParam.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUctxCigParam.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsharedDataType

      public static int nsharedDataType(long struct)
      Unsafe version of sharedDataType().
    • nsharedData

      public static long nsharedData(long struct)
      Unsafe version of sharedData().
    • nsharedDataType

      public static void nsharedDataType(long struct, int value)
      Unsafe version of sharedDataType.
    • nsharedData

      public static void nsharedData(long struct, long value)
      Unsafe version of sharedData.