Class CUstreamAttrValue

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ACCESSPOLICYWINDOW, SYNCPOLICY

        The struct member offsets.
    • Constructor Detail

      • CUstreamAttrValue

        public CUstreamAttrValue​(java.nio.ByteBuffer container)
        Creates a CUstreamAttrValue 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • malloc

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

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

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

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

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

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

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

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

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

        public static CUstreamAttrValue.Buffer calloc​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new CUstreamAttrValue.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsyncPolicy

        public static int nsyncPolicy​(long struct)
        Unsafe version of syncPolicy().
      • nsyncPolicy

        public static void nsyncPolicy​(long struct,
                                       int value)
        Unsafe version of syncPolicy.