Class CUlaunchMemSyncDomainMap

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

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

Layout


 struct CUlaunchMemSyncDomainMap {
     unsigned char default_;
     unsigned char remote;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DEFAULT_
      The struct member offsets.
    • REMOTE

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

    • CUlaunchMemSyncDomainMap

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

      public byte default_()
      Returns:
      the value of the default_ field.
    • remote

      public byte remote()
      Returns:
      the value of the remote field.
    • default_

      public CUlaunchMemSyncDomainMap default_(byte value)
      Sets the specified value to the default_ field.
    • remote

      public CUlaunchMemSyncDomainMap remote(byte value)
      Sets the specified value to the remote field.
    • set

      public CUlaunchMemSyncDomainMap set(byte default_, byte remote)
      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 CUlaunchMemSyncDomainMap malloc()
      Returns a new CUlaunchMemSyncDomainMap instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte ndefault_(long struct)
      Unsafe version of default_().
    • nremote

      public static byte nremote(long struct)
      Unsafe version of remote().
    • ndefault_

      public static void ndefault_(long struct, byte value)
      Unsafe version of default_.
    • nremote

      public static void nremote(long struct, byte value)
      Unsafe version of remote.