Class CXPlatformAvailability

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PLATFORM, INTRODUCED, DEPRECATED, OBSOLETED, UNAVAILABLE, MESSAGE

        The struct member offsets.
    • Constructor Detail

      • CXPlatformAvailability

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

        public CXString Platform()
        a string that describes the platform for which this structure provides availability information.

        Possible values are "ios" or "macos".

      • Introduced

        public CXVersion Introduced()
        the version number in which this entity was introduced
      • Deprecated

        public CXVersion Deprecated()
        the version number in which this entity was deprecated (but is still available)
      • Obsoleted

        public CXVersion Obsoleted()
        the version number in which this entity was obsoleted, and therefore is no longer available
      • Unavailable

        public int Unavailable()
        whether the entity is unconditionally unavailable on this platform
      • Message

        public CXString Message()
        an optional message to provide to a user of this API, e.g., to suggest replacement APIs
      • malloc

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

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

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

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

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

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

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

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

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

        public static CXString nPlatform​(long struct)
        Unsafe version of Platform().
      • nUnavailable

        public static int nUnavailable​(long struct)
        Unsafe version of Unavailable().
      • nMessage

        public static CXString nMessage​(long struct)
        Unsafe version of Message().