Class CUgraphExecUpdateResultInfo

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

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

Layout


 struct CUgraphExecUpdateResultInfo {
     CUgraphExecUpdateResult result;
     CUgraphNode errorNode;
     CUgraphNode errorFromNode;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int RESULT
      The struct member offsets.
    • ERRORNODE

      public static final int ERRORNODE
      The struct member offsets.
    • ERRORFROMNODE

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

    • CUgraphExecUpdateResultInfo

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nresult(long struct)
      Unsafe version of result().
    • nerrorNode

      public static long nerrorNode(long struct)
      Unsafe version of errorNode().
    • nerrorFromNode

      public static long nerrorFromNode(long struct)
      Unsafe version of errorFromNode().