Package org.lwjgl.llvm
Class CXIdxEntityInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct CXIdxEntityInfo {
CXIdxEntityKind kind;
CXIdxEntityCXXTemplateKind templateKind;
CXIdxEntityLanguage lang;
char const * name;
char const * USR;
CXCursor
cursor;
CXIdxAttrInfo
const * const * attributes;
unsigned numAttributes;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCXIdxEntityInfo
(ByteBuffer container) Creates aCXIdxEntityInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIdxEntityInfo
calloc()
Returns a newCXIdxEntityInfo
instance allocated withmemCalloc
.static CXIdxEntityInfo.Buffer
calloc
(int capacity) Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemCalloc
.static CXIdxEntityInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxEntityInfo
calloc
(MemoryStack stack) Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxEntityInfo
Deprecated.static CXIdxEntityInfo.Buffer
callocStack
(int capacity) Deprecated.static CXIdxEntityInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CXIdxEntityInfo
callocStack
(MemoryStack stack) Deprecated.static CXIdxEntityInfo
create()
Returns a newCXIdxEntityInfo
instance allocated withBufferUtils
.static CXIdxEntityInfo.Buffer
create
(int capacity) Returns a newCXIdxEntityInfo.Buffer
instance allocated withBufferUtils
.static CXIdxEntityInfo
create
(long address) Returns a newCXIdxEntityInfo
instance for the specified memory address.static CXIdxEntityInfo.Buffer
create
(long address, int capacity) Create aCXIdxEntityInfo.Buffer
instance at the specified memory.static CXIdxEntityInfo
createSafe
(long address) static CXIdxEntityInfo.Buffer
createSafe
(long address, int capacity) cursor()
int
kind()
int
lang()
static CXIdxEntityInfo
malloc()
Returns a newCXIdxEntityInfo
instance allocated withmemAlloc
.static CXIdxEntityInfo.Buffer
malloc
(int capacity) Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemAlloc
.static CXIdxEntityInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
.static CXIdxEntityInfo
malloc
(MemoryStack stack) Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
.static CXIdxEntityInfo
Deprecated.static CXIdxEntityInfo.Buffer
mallocStack
(int capacity) Deprecated.static CXIdxEntityInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CXIdxEntityInfo
mallocStack
(MemoryStack stack) Deprecated.name()
static PointerBuffer
nattributes
(long struct) Unsafe version ofattributes
.static CXCursor
ncursor
(long struct) Unsafe version ofcursor()
.static int
nkind
(long struct) Unsafe version ofkind()
.static int
nlang
(long struct) Unsafe version oflang()
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static int
nnumAttributes
(long struct) Unsafe version ofnumAttributes()
.static int
ntemplateKind
(long struct) Unsafe version oftemplateKind()
.int
static ByteBuffer
nUSR
(long struct) Unsafe version ofUSR
.static String
nUSRString
(long struct) Unsafe version ofUSRString()
.int
sizeof()
Returnssizeof(struct)
.int
USR()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
KIND
public static final int KINDThe struct member offsets. -
TEMPLATEKIND
public static final int TEMPLATEKINDThe struct member offsets. -
LANG
public static final int LANGThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
USR
public static final int USRThe struct member offsets. -
CURSOR
public static final int CURSORThe struct member offsets. -
ATTRIBUTES
public static final int ATTRIBUTESThe struct member offsets. -
NUMATTRIBUTES
public static final int NUMATTRIBUTESThe struct member offsets.
-
-
Constructor Details
-
CXIdxEntityInfo
Creates aCXIdxEntityInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CXIdxEntityInfo>
-
kind
public int kind()- Returns:
- the value of the
kind
field.
-
templateKind
public int templateKind()- Returns:
- the value of the
templateKind
field.
-
lang
public int lang()- Returns:
- the value of the
lang
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
USR
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theUSR
field.
-
USRString
- Returns:
- the null-terminated string pointed to by the
USR
field.
-
cursor
- Returns:
- a
CXCursor
view of thecursor
field.
-
attributes
- Returns:
- a
PointerBuffer
view of the data pointed to by theattributes
field.
-
numAttributes
public int numAttributes()- Returns:
- the value of the
numAttributes
field.
-
malloc
Returns a newCXIdxEntityInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCXIdxEntityInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCXIdxEntityInfo
instance allocated withBufferUtils
. -
create
Returns a newCXIdxEntityInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCXIdxEntityInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCXIdxEntityInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nkind
public static int nkind(long struct) Unsafe version ofkind()
. -
ntemplateKind
public static int ntemplateKind(long struct) Unsafe version oftemplateKind()
. -
nlang
public static int nlang(long struct) Unsafe version oflang()
. -
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
nUSR
Unsafe version ofUSR
. -
nUSRString
Unsafe version ofUSRString()
. -
ncursor
Unsafe version ofcursor()
. -
nattributes
Unsafe version ofattributes
. -
nnumAttributes
public static int nnumAttributes(long struct) Unsafe version ofnumAttributes()
.
-