Class CUDA_MEM_FREE_NODE_PARAMS

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

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

Layout


 struct CUDA_MEM_FREE_NODE_PARAMS {
     CUdeviceptr dptr;
 }
  • Field Details

    • SIZEOF

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

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

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

    • CUDA_MEM_FREE_NODE_PARAMS

      public CUDA_MEM_FREE_NODE_PARAMS(ByteBuffer container)
      Creates a CUDA_MEM_FREE_NODE_PARAMS 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<CUDA_MEM_FREE_NODE_PARAMS>
    • dptr

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

      public CUDA_MEM_FREE_NODE_PARAMS dptr(long value)
      Sets the specified value to the dptr field.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static CUDA_MEM_FREE_NODE_PARAMS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEM_FREE_NODE_PARAMS.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
    • ndptr

      public static long ndptr(long struct)
      Unsafe version of dptr().
    • ndptr

      public static void ndptr(long struct, long value)
      Unsafe version of dptr.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate