Class CUasyncNotificationInfo

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

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

Layout


 struct CUasyncNotificationInfo {
     CUasyncNotificationType type;
     union {
         struct {
             unsigned long long bytesOverBudget;
         } overBudget;
     } info;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • INFO

      public static final int INFO
      The struct member offsets.
    • INFO_OVERBUDGET

      public static final int INFO_OVERBUDGET
      The struct member offsets.
    • INFO_OVERBUDGET_BYTESOVERBUDGET

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

    • CUasyncNotificationInfo

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

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

      public long info_overBudget_bytesOverBudget()
      Returns:
      the value of the info.overBudget.bytesOverBudget field.
    • type

      public CUasyncNotificationInfo type(int value)
      Sets the specified value to the type field.
    • info_overBudget_bytesOverBudget

      public CUasyncNotificationInfo info_overBudget_bytesOverBudget(long value)
      Sets the specified value to the bytesOverBudget field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long ninfo_overBudget_bytesOverBudget(long struct)
    • ntype

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

      public static void ninfo_overBudget_bytesOverBudget(long struct, long value)