Package org.lwjgl.llvm
Class CXIdxEntityInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXIdxEntityInfo(ByteBuffer container) Creates aCXIdxEntityInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIdxEntityInfocalloc()Returns a newCXIdxEntityInfoinstance allocated withmemCalloc.static CXIdxEntityInfo.Buffercalloc(int capacity) Returns a newCXIdxEntityInfo.Bufferinstance allocated withmemCalloc.static CXIdxEntityInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newCXIdxEntityInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIdxEntityInfocalloc(MemoryStack stack) Returns a newCXIdxEntityInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIdxEntityInfocreate()Returns a newCXIdxEntityInfoinstance allocated withBufferUtils.static CXIdxEntityInfo.Buffercreate(int capacity) Returns a newCXIdxEntityInfo.Bufferinstance allocated withBufferUtils.static CXIdxEntityInfocreate(long address) Returns a newCXIdxEntityInfoinstance for the specified memory address.static CXIdxEntityInfo.Buffercreate(long address, int capacity) Create aCXIdxEntityInfo.Bufferinstance at the specified memory.static @Nullable CXIdxEntityInfocreateSafe(long address) static @Nullable CXIdxEntityInfo.BuffercreateSafe(long address, int capacity) cursor()intkind()intlang()static CXIdxEntityInfomalloc()Returns a newCXIdxEntityInfoinstance allocated withmemAlloc.static CXIdxEntityInfo.Buffermalloc(int capacity) Returns a newCXIdxEntityInfo.Bufferinstance allocated withmemAlloc.static CXIdxEntityInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newCXIdxEntityInfo.Bufferinstance allocated on the specifiedMemoryStack.static CXIdxEntityInfomalloc(MemoryStack stack) Returns a newCXIdxEntityInfoinstance allocated on the specifiedMemoryStack.name()static PointerBuffernattributes(long struct) Unsafe version ofattributes.static CXCursorncursor(long struct) Unsafe version ofcursor().static intnkind(long struct) Unsafe version ofkind().static intnlang(long struct) Unsafe version oflang().static ByteBuffernname(long struct) Unsafe version ofname().static StringnnameString(long struct) Unsafe version ofnameString().static intnnumAttributes(long struct) Unsafe version ofnumAttributes().static intntemplateKind(long struct) Unsafe version oftemplateKind().intstatic ByteBuffernUSR(long struct) Unsafe version ofUSR.static StringnUSRString(long struct) Unsafe version ofUSRString().intsizeof()Returnssizeof(struct).intUSR()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aCXIdxEntityInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CXIdxEntityInfo>
-
kind
public int kind()- Returns:
- the value of the
kindfield.
-
templateKind
public int templateKind()- Returns:
- the value of the
templateKindfield.
-
lang
public int lang()- Returns:
- the value of the
langfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
USR
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theUSRfield.
-
USRString
- Returns:
- the null-terminated string pointed to by the
USRfield.
-
cursor
- Returns:
- a
CXCursorview of thecursorfield.
-
attributes
- Returns:
- a
PointerBufferview of the data pointed to by theattributesfield.
-
numAttributes
public int numAttributes()- Returns:
- the value of the
numAttributesfield.
-
malloc
Returns a newCXIdxEntityInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCXIdxEntityInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCXIdxEntityInfoinstance allocated withBufferUtils. -
create
Returns a newCXIdxEntityInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIdxEntityInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCXIdxEntityInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCXIdxEntityInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCXIdxEntityInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCXIdxEntityInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCXIdxEntityInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCXIdxEntityInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCXIdxEntityInfo.Bufferinstance allocated on the specifiedMemoryStackand 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().
-