Class AIMetaData

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MNUMPROPERTIES, MKEYS, MVALUES

        The struct member offsets.
    • Constructor Detail

      • AIMetaData

        public AIMetaData​(java.nio.ByteBuffer container)
        Creates a AIMetaData 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
      • mNumProperties

        public int mNumProperties()
        Length of the mKeys and mValues arrays, respectively
      • mKeys

        public AIString.Buffer mKeys()
        Arrays of keys, may not be NULL. Entries in this array may not be NULL as well.
      • mValues

        public AIMetaDataEntry.Buffer mValues()
        Arrays of values, may not be NULL. Entries in this array may be NULL if the corresponding property key has no assigned value.
      • set

        public AIMetaData set​(AIMetaData src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

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

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

        @Deprecated
        public static AIMetaData mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static AIMetaData callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • mallocStack

        @Deprecated
        public static AIMetaData.Buffer mallocStack​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
      • callocStack

        @Deprecated
        public static AIMetaData.Buffer callocStack​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
      • malloc

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

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

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

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

        public static int nmNumProperties​(long struct)
        Unsafe version of mNumProperties().
      • nmNumProperties

        public static void nmNumProperties​(long struct,
                                           int value)
        Sets the specified value to the mNumProperties field of the specified struct.
      • nmKeys

        public static void nmKeys​(long struct,
                                  AIString.Buffer value)
        Unsafe version of mKeys.
      • validate

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