Class CUmulticastObjectProp

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

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

Layout


 struct CUmulticastObjectProp {
     unsigned int numDevices;
     size_t size;
     unsigned long long handleTypes;
     unsigned long long flags;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NUMDEVICES
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • HANDLETYPES

      public static final int HANDLETYPES
      The struct member offsets.
    • FLAGS

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

    • CUmulticastObjectProp

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

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

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

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

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

      public CUmulticastObjectProp numDevices(int value)
      Sets the specified value to the numDevices field.
    • size

      public CUmulticastObjectProp size(long value)
      Sets the specified value to the size field.
    • handleTypes

      public CUmulticastObjectProp handleTypes(long value)
      Sets the specified value to the handleTypes field.
    • flags

      public CUmulticastObjectProp flags(long value)
      Sets the specified value to the flags field.
    • set

      public CUmulticastObjectProp set(int numDevices, long size, long handleTypes, long flags)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nnumDevices(long struct)
      Unsafe version of numDevices().
    • nsize

      public static long nsize(long struct)
      Unsafe version of size().
    • nhandleTypes

      public static long nhandleTypes(long struct)
      Unsafe version of handleTypes().
    • nflags

      public static long nflags(long struct)
      Unsafe version of flags().
    • nnumDevices

      public static void nnumDevices(long struct, int value)
      Unsafe version of numDevices.
    • nsize

      public static void nsize(long struct, long value)
      Unsafe version of size.
    • nhandleTypes

      public static void nhandleTypes(long struct, long value)
      Unsafe version of handleTypes.
    • nflags

      public static void nflags(long struct, long value)
      Unsafe version of flags.