Class CUexecAffinityParam

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class CUexecAffinityParam
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Execution Affinity Parameters.

    Layout

    
     struct CUexecAffinityParam {
         CUexecAffinityType type;
         union {
             CUexecAffinitySmCount smCount;
         } param;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, PARAM, PARAM_SMCOUNT

        The struct member offsets.
    • Constructor Detail

      • CUexecAffinityParam

        public CUexecAffinityParam​(java.nio.ByteBuffer container)
        Creates a CUexecAffinityParam 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

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

        public CUexecAffinityParam type​(int value)
        Sets the specified value to the type field.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int ntype​(long struct)
        Unsafe version of type().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.