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.NativeResource
Describes 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.Member documentation
Platform
– a string that describes the platform for which this structure provides availability information.Possible values are "ios" or "macos".
Introduced
– the version number in which this entity was introducedDeprecated
– the version number in which this entity was deprecated (but is still available)Obsoleted
– the version number in which this entity was obsoleted, and therefore is no longer availableUnavailable
– whether the entity is unconditionally unavailable on this platformMessage
– an optional message to provide to a user of this API, e.g., to suggest replacement APIs
Layout
struct CXPlatformAvailability {
CXString
Platform;CXVersion
Introduced;CXVersion
Deprecated;CXVersion
Obsoleted; int Unavailable;CXString
Message; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXPlatformAvailability.Buffer
An array ofCXPlatformAvailability
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DEPRECATED
INTRODUCED
MESSAGE
OBSOLETED
PLATFORMThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UNAVAILABLE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description CXPlatformAvailability(java.nio.ByteBuffer container)
Creates aCXPlatformAvailability
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CXPlatformAvailability
calloc()
Returns a newCXPlatformAvailability
instance allocated withmemCalloc
.static CXPlatformAvailability.Buffer
calloc(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withmemCalloc
.static CXPlatformAvailability
callocStack()
Returns a newCXPlatformAvailability
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXPlatformAvailability.Buffer
callocStack(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXPlatformAvailability.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXPlatformAvailability
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXPlatformAvailability
create()
Returns a newCXPlatformAvailability
instance allocated withBufferUtils
.static CXPlatformAvailability.Buffer
create(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withBufferUtils
.static CXPlatformAvailability
create(long address)
Returns a newCXPlatformAvailability
instance for the specified memory address.static CXPlatformAvailability.Buffer
create(long address, int capacity)
Create aCXPlatformAvailability.Buffer
instance at the specified memory.static CXPlatformAvailability
createSafe(long address)
static CXPlatformAvailability.Buffer
createSafe(long address, int capacity)
CXVersion
Deprecated()
Returns aCXVersion
view of theDeprecated
field.CXVersion
Introduced()
Returns aCXVersion
view of theIntroduced
field.static CXPlatformAvailability
malloc()
Returns a newCXPlatformAvailability
instance allocated withmemAlloc
.static CXPlatformAvailability.Buffer
malloc(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withmemAlloc
.static CXPlatformAvailability
mallocStack()
Returns a newCXPlatformAvailability
instance allocated on the thread-localMemoryStack
.static CXPlatformAvailability.Buffer
mallocStack(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the thread-localMemoryStack
.static CXPlatformAvailability.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the specifiedMemoryStack
.static CXPlatformAvailability
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability
instance allocated on the specifiedMemoryStack
.CXString
Message()
Returns aCXString
view of theMessage
field.static CXVersion
nDeprecated(long struct)
Unsafe version ofDeprecated()
.static CXVersion
nIntroduced(long struct)
Unsafe version ofIntroduced()
.static CXString
nMessage(long struct)
Unsafe version ofMessage()
.static CXVersion
nObsoleted(long struct)
Unsafe version ofObsoleted()
.static CXString
nPlatform(long struct)
Unsafe version ofPlatform()
.static int
nUnavailable(long struct)
Unsafe version ofUnavailable()
.CXVersion
Obsoleted()
Returns aCXVersion
view of theObsoleted
field.CXString
Platform()
Returns aCXString
view of thePlatform
field.int
sizeof()
int
Unavailable()
Returns the value of theUnavailable
field.
-
-
-
Constructor Detail
-
CXPlatformAvailability
public CXPlatformAvailability(java.nio.ByteBuffer container)
Creates aCXPlatformAvailability
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
Unavailable
public int Unavailable()
Returns the value of theUnavailable
field.
-
malloc
public static CXPlatformAvailability malloc()
Returns a newCXPlatformAvailability
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXPlatformAvailability calloc()
Returns a newCXPlatformAvailability
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXPlatformAvailability create()
Returns a newCXPlatformAvailability
instance allocated withBufferUtils
.
-
create
public static CXPlatformAvailability create(long address)
Returns a newCXPlatformAvailability
instance for the specified memory address.
-
createSafe
@Nullable public static CXPlatformAvailability createSafe(long address)
-
malloc
public static CXPlatformAvailability.Buffer malloc(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXPlatformAvailability.Buffer calloc(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXPlatformAvailability.Buffer create(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXPlatformAvailability.Buffer create(long address, int capacity)
Create aCXPlatformAvailability.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXPlatformAvailability.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXPlatformAvailability mallocStack()
Returns a newCXPlatformAvailability
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXPlatformAvailability callocStack()
Returns a newCXPlatformAvailability
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXPlatformAvailability mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXPlatformAvailability callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXPlatformAvailability.Buffer mallocStack(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXPlatformAvailability.Buffer callocStack(int capacity)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXPlatformAvailability.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXPlatformAvailability.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXPlatformAvailability.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-