public class CXComment
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct CXComment {
void const * ASTNode;
CXTranslationUnit TranslationUnit;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXComment.Buffer
An array of
CXComment structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ASTNODE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TRANSLATIONUNIT
The struct member offsets.
|
| Constructor and Description |
|---|
CXComment(java.nio.ByteBuffer container)
Creates a
CXComment instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
ASTNode()
Returns the value of the
ASTNode field. |
static CXComment |
calloc()
Returns a new
CXComment instance allocated with memCalloc. |
static CXComment.Buffer |
calloc(int capacity)
Returns a new
CXComment.Buffer instance allocated with memCalloc. |
static CXComment |
callocStack()
Returns a new
CXComment instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXComment.Buffer |
callocStack(int capacity)
Returns a new
CXComment.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXComment.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXComment.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXComment |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXComment instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXComment |
create()
Returns a new
CXComment instance allocated with BufferUtils. |
static CXComment.Buffer |
create(int capacity)
Returns a new
CXComment.Buffer instance allocated with BufferUtils. |
static CXComment |
create(long address)
Returns a new
CXComment instance for the specified memory address. |
static CXComment.Buffer |
create(long address,
int capacity)
Create a
CXComment.Buffer instance at the specified memory. |
static CXComment |
createSafe(long address)
|
static CXComment.Buffer |
createSafe(long address,
int capacity)
|
static CXComment |
malloc()
Returns a new
CXComment instance allocated with memAlloc. |
static CXComment.Buffer |
malloc(int capacity)
Returns a new
CXComment.Buffer instance allocated with memAlloc. |
static CXComment |
mallocStack()
Returns a new
CXComment instance allocated on the thread-local MemoryStack. |
static CXComment.Buffer |
mallocStack(int capacity)
Returns a new
CXComment.Buffer instance allocated on the thread-local MemoryStack. |
static CXComment.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXComment.Buffer instance allocated on the specified MemoryStack. |
static CXComment |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXComment instance allocated on the specified MemoryStack. |
static long |
nASTNode(long struct)
Unsafe version of
ASTNode(). |
static long |
nTranslationUnit(long struct)
Unsafe version of
TranslationUnit(). |
int |
sizeof() |
long |
TranslationUnit()
Returns the value of the
TranslationUnit field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ASTNODE
public static final int TRANSLATIONUNIT
public CXComment(java.nio.ByteBuffer container)
CXComment instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long ASTNode()
ASTNode field.public long TranslationUnit()
TranslationUnit field.public static CXComment malloc()
CXComment instance allocated with memAlloc. The instance must be explicitly freed.public static CXComment calloc()
CXComment instance allocated with memCalloc. The instance must be explicitly freed.public static CXComment create()
CXComment instance allocated with BufferUtils.public static CXComment create(long address)
CXComment instance for the specified memory address.@Nullable public static CXComment createSafe(long address)
public static CXComment.Buffer malloc(int capacity)
CXComment.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXComment.Buffer calloc(int capacity)
CXComment.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXComment.Buffer create(int capacity)
CXComment.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXComment.Buffer create(long address, int capacity)
CXComment.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXComment.Buffer createSafe(long address, int capacity)
public static CXComment mallocStack()
CXComment instance allocated on the thread-local MemoryStack.public static CXComment callocStack()
CXComment instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXComment mallocStack(org.lwjgl.system.MemoryStack stack)
CXComment instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXComment callocStack(org.lwjgl.system.MemoryStack stack)
CXComment instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXComment.Buffer mallocStack(int capacity)
CXComment.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXComment.Buffer callocStack(int capacity)
CXComment.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXComment.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXComment.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXComment.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXComment.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nASTNode(long struct)
ASTNode().public static long nTranslationUnit(long struct)
TranslationUnit().Copyright LWJGL. All Rights Reserved. License terms.