Class CUaccessPolicyWindow

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

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

Layout


 struct CUaccessPolicyWindow {
     void * base_ptr;
     size_t num_bytes;
     float hitRatio;
     CUaccessProperty hitProp;
     CUaccessProperty missProp;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BASE_PTR
      The struct member offsets.
    • NUM_BYTES

      public static final int NUM_BYTES
      The struct member offsets.
    • HITRATIO

      public static final int HITRATIO
      The struct member offsets.
    • HITPROP

      public static final int HITPROP
      The struct member offsets.
    • MISSPROP

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

    • CUaccessPolicyWindow

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

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

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

      public float hitRatio()
      Returns:
      the value of the hitRatio field.
    • hitProp

      public int hitProp()
      Returns:
      the value of the hitProp field.
    • missProp

      public int missProp()
      Returns:
      the value of the missProp field.
    • base_ptr

      public CUaccessPolicyWindow base_ptr(long value)
      Sets the specified value to the base_ptr field.
    • num_bytes

      public CUaccessPolicyWindow num_bytes(long value)
      Sets the specified value to the num_bytes field.
    • hitRatio

      public CUaccessPolicyWindow hitRatio(float value)
      Sets the specified value to the hitRatio field.
    • hitProp

      public CUaccessPolicyWindow hitProp(int value)
      Sets the specified value to the hitProp field.
    • missProp

      public CUaccessPolicyWindow missProp(int value)
      Sets the specified value to the missProp field.
    • set

      public CUaccessPolicyWindow set(long base_ptr, long num_bytes, float hitRatio, int hitProp, int missProp)
      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 CUaccessPolicyWindow malloc()
      Returns a new CUaccessPolicyWindow instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nbase_ptr(long struct)
      Unsafe version of base_ptr().
    • nnum_bytes

      public static long nnum_bytes(long struct)
      Unsafe version of num_bytes().
    • nhitRatio

      public static float nhitRatio(long struct)
      Unsafe version of hitRatio().
    • nhitProp

      public static int nhitProp(long struct)
      Unsafe version of hitProp().
    • nmissProp

      public static int nmissProp(long struct)
      Unsafe version of missProp().
    • nbase_ptr

      public static void nbase_ptr(long struct, long value)
      Unsafe version of base_ptr.
    • nnum_bytes

      public static void nnum_bytes(long struct, long value)
      Unsafe version of num_bytes.
    • nhitRatio

      public static void nhitRatio(long struct, float value)
      Unsafe version of hitRatio.
    • nhitProp

      public static void nhitProp(long struct, int value)
      Unsafe version of hitProp.
    • nmissProp

      public static void nmissProp(long struct, int value)
      Unsafe version of missProp.
    • validate

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