Package org.lwjgl.llvm
Class CXIdxEntityInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXIdxEntityInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CXIdxEntityInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
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 Modifier and Type Class Description static class
CXIdxEntityInfo.Buffer
An array ofCXIdxEntityInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ATTRIBUTES
CURSOR
KIND
LANG
NAME
NUMATTRIBUTESThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TEMPLATEKIND
USRThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CXIdxEntityInfo(java.nio.ByteBuffer container)
Creates aCXIdxEntityInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBuffer
attributes()
Returns aPointerBuffer
view of the data pointed to by theattributes
field.static CXIdxEntityInfo
calloc()
Returns a newCXIdxEntityInfo
instance allocated withmemCalloc
.static CXIdxEntityInfo.Buffer
calloc(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemCalloc
.static CXIdxEntityInfo
callocStack()
Returns a newCXIdxEntityInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXIdxEntityInfo.Buffer
callocStack(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXIdxEntityInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIdxEntityInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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)
CXCursor
cursor()
Returns aCXCursor
view of thecursor
field.int
kind()
Returns the value of thekind
field.int
lang()
Returns the value of thelang
field.static CXIdxEntityInfo
malloc()
Returns a newCXIdxEntityInfo
instance allocated withmemAlloc
.static CXIdxEntityInfo.Buffer
malloc(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemAlloc
.static CXIdxEntityInfo
mallocStack()
Returns a newCXIdxEntityInfo
instance allocated on the thread-localMemoryStack
.static CXIdxEntityInfo.Buffer
mallocStack(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the thread-localMemoryStack
.static CXIdxEntityInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
.static CXIdxEntityInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
.java.nio.ByteBuffer
name()
Returns aByteBuffer
view of the null-terminated string pointed to by thename
field.java.lang.String
nameString()
Decodes the null-terminated string pointed to by thename
field.static org.lwjgl.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 java.nio.ByteBuffer
nname(long struct)
Unsafe version ofname()
.static java.lang.String
nnameString(long struct)
Unsafe version ofnameString()
.static int
nnumAttributes(long struct)
Unsafe version ofnumAttributes()
.static int
ntemplateKind(long struct)
Unsafe version oftemplateKind()
.int
numAttributes()
Returns the value of thenumAttributes
field.static java.nio.ByteBuffer
nUSR(long struct)
Unsafe version ofUSR
.static java.lang.String
nUSRString(long struct)
Unsafe version ofUSRString()
.int
sizeof()
int
templateKind()
Returns the value of thetemplateKind
field.java.nio.ByteBuffer
USR()
Returns aByteBuffer
view of the null-terminated string pointed to by theUSR
field.java.lang.String
USRString()
Decodes the null-terminated string pointed to by theUSR
field.
-
-
-
Constructor Detail
-
CXIdxEntityInfo
public CXIdxEntityInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
kind
public int kind()
Returns the value of thekind
field.
-
templateKind
public int templateKind()
Returns the value of thetemplateKind
field.
-
lang
public int lang()
Returns the value of thelang
field.
-
name
public java.nio.ByteBuffer name()
Returns aByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
public java.lang.String nameString()
Decodes the null-terminated string pointed to by thename
field.
-
USR
public java.nio.ByteBuffer USR()
Returns aByteBuffer
view of the null-terminated string pointed to by theUSR
field.
-
USRString
public java.lang.String USRString()
Decodes the null-terminated string pointed to by theUSR
field.
-
attributes
public org.lwjgl.PointerBuffer attributes()
Returns aPointerBuffer
view of the data pointed to by theattributes
field.
-
numAttributes
public int numAttributes()
Returns the value of thenumAttributes
field.
-
malloc
public static CXIdxEntityInfo malloc()
Returns a newCXIdxEntityInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXIdxEntityInfo calloc()
Returns a newCXIdxEntityInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXIdxEntityInfo create()
Returns a newCXIdxEntityInfo
instance allocated withBufferUtils
.
-
create
public static CXIdxEntityInfo create(long address)
Returns a newCXIdxEntityInfo
instance for the specified memory address.
-
createSafe
@Nullable public static CXIdxEntityInfo createSafe(long address)
-
malloc
public static CXIdxEntityInfo.Buffer malloc(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXIdxEntityInfo.Buffer calloc(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXIdxEntityInfo.Buffer create(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXIdxEntityInfo.Buffer create(long address, int capacity)
Create aCXIdxEntityInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXIdxEntityInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXIdxEntityInfo mallocStack()
Returns a newCXIdxEntityInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXIdxEntityInfo callocStack()
Returns a newCXIdxEntityInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXIdxEntityInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXIdxEntityInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXIdxEntityInfo.Buffer mallocStack(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXIdxEntityInfo.Buffer callocStack(int capacity)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXIdxEntityInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXIdxEntityInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXIdxEntityInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname()
.
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString()
.
-
nUSR
public static java.nio.ByteBuffer nUSR(long struct)
Unsafe version ofUSR
.
-
nUSRString
public static java.lang.String nUSRString(long struct)
Unsafe version ofUSRString()
.
-
nattributes
public static org.lwjgl.PointerBuffer nattributes(long struct)
Unsafe version ofattributes
.
-
nnumAttributes
public static int nnumAttributes(long struct)
Unsafe version ofnumAttributes()
.
-
-