Package org.lwjgl.llvm
Class CXPlatformAvailability
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXPlatformAvailability
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXPlatformAvailability extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes the availability of a given entity on a particular platform, e.g., a particular class might only be available on Mac OS 10.7 or newer.Layout
struct CXPlatformAvailability {CXStringPlatform();CXVersionIntroduced();CXVersionDeprecated();CXVersionObsoleted(); intUnavailable();CXStringMessage(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXPlatformAvailability.BufferAn array ofCXPlatformAvailabilitystructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEPRECATED
INTRODUCED
MESSAGE
OBSOLETED
PLATFORMThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNAVAILABLEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CXPlatformAvailability(java.nio.ByteBuffer container)Creates aCXPlatformAvailabilityinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CXPlatformAvailabilitycalloc()Returns a newCXPlatformAvailabilityinstance allocated withmemCalloc.static CXPlatformAvailability.Buffercalloc(int capacity)Returns a newCXPlatformAvailability.Bufferinstance allocated withmemCalloc.static CXPlatformAvailability.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXPlatformAvailability.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXPlatformAvailabilitycalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXPlatformAvailabilityinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXPlatformAvailabilitycallocStack()Deprecated.static CXPlatformAvailability.BuffercallocStack(int capacity)Deprecated.static CXPlatformAvailability.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXPlatformAvailabilitycallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXPlatformAvailabilitycreate()Returns a newCXPlatformAvailabilityinstance allocated withBufferUtils.static CXPlatformAvailability.Buffercreate(int capacity)Returns a newCXPlatformAvailability.Bufferinstance allocated withBufferUtils.static CXPlatformAvailabilitycreate(long address)Returns a newCXPlatformAvailabilityinstance for the specified memory address.static CXPlatformAvailability.Buffercreate(long address, int capacity)Create aCXPlatformAvailability.Bufferinstance at the specified memory.static CXPlatformAvailabilitycreateSafe(long address)static CXPlatformAvailability.BuffercreateSafe(long address, int capacity)CXVersionDeprecated()the version number in which this entity was deprecated (but is still available)CXVersionIntroduced()the version number in which this entity was introducedstatic CXPlatformAvailabilitymalloc()Returns a newCXPlatformAvailabilityinstance allocated withmemAlloc.static CXPlatformAvailability.Buffermalloc(int capacity)Returns a newCXPlatformAvailability.Bufferinstance allocated withmemAlloc.static CXPlatformAvailability.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXPlatformAvailability.Bufferinstance allocated on the specifiedMemoryStack.static CXPlatformAvailabilitymalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXPlatformAvailabilityinstance allocated on the specifiedMemoryStack.static CXPlatformAvailabilitymallocStack()Deprecated.static CXPlatformAvailability.BuffermallocStack(int capacity)Deprecated.static CXPlatformAvailability.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXPlatformAvailabilitymallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.CXStringMessage()an optional message to provide to a user of this API, e.g., to suggest replacement APIsstatic CXVersionnDeprecated(long struct)Unsafe version ofDeprecated().static CXVersionnIntroduced(long struct)Unsafe version ofIntroduced().static CXStringnMessage(long struct)Unsafe version ofMessage().static CXVersionnObsoleted(long struct)Unsafe version ofObsoleted().static CXStringnPlatform(long struct)Unsafe version ofPlatform().static intnUnavailable(long struct)Unsafe version ofUnavailable().CXVersionObsoleted()the version number in which this entity was obsoleted, and therefore is no longer availableCXStringPlatform()a string that describes the platform for which this structure provides availability information.intsizeof()intUnavailable()whether the entity is unconditionally unavailable on this platform
-
-
-
Constructor Detail
-
CXPlatformAvailability
public CXPlatformAvailability(java.nio.ByteBuffer container)
Creates aCXPlatformAvailabilityinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.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 newCXPlatformAvailabilityinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXPlatformAvailability calloc()
Returns a newCXPlatformAvailabilityinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXPlatformAvailability create()
Returns a newCXPlatformAvailabilityinstance allocated withBufferUtils.
-
create
public static CXPlatformAvailability create(long address)
Returns a newCXPlatformAvailabilityinstance for the specified memory address.
-
createSafe
@Nullable public static CXPlatformAvailability createSafe(long address)
-
malloc
public static CXPlatformAvailability.Buffer malloc(int capacity)
Returns a newCXPlatformAvailability.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXPlatformAvailability.Buffer calloc(int capacity)
Returns a newCXPlatformAvailability.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXPlatformAvailability.Buffer create(int capacity)
Returns a newCXPlatformAvailability.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXPlatformAvailability.Buffer create(long address, int capacity)
Create aCXPlatformAvailability.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXPlatformAvailability.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXPlatformAvailability mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXPlatformAvailability callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXPlatformAvailability mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXPlatformAvailability callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXPlatformAvailability.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXPlatformAvailability.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXPlatformAvailability.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXPlatformAvailability.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXPlatformAvailability malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailabilityinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXPlatformAvailability calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailabilityinstance allocated on the specifiedMemoryStackand 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 newCXPlatformAvailability.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXPlatformAvailability.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nPlatform
public static CXString nPlatform(long struct)
Unsafe version ofPlatform().
-
nIntroduced
public static CXVersion nIntroduced(long struct)
Unsafe version ofIntroduced().
-
nDeprecated
public static CXVersion nDeprecated(long struct)
Unsafe version ofDeprecated().
-
nObsoleted
public static CXVersion nObsoleted(long struct)
Unsafe version ofObsoleted().
-
nUnavailable
public static int nUnavailable(long struct)
Unsafe version ofUnavailable().
-
-