Package org.lwjgl.llvm
Class CXComment
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXComment
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CXComment extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
A parsed comment.Layout
struct CXComment { void const * ASTNode; CXTranslationUnit TranslationUnit; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXComment.Buffer
An array ofCXComment
structs.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CXComment(java.nio.ByteBuffer container)
Creates aCXComment
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ASTNode()
Returns the value of theASTNode
field.static CXComment
calloc()
Returns a newCXComment
instance allocated withmemCalloc
.static CXComment.Buffer
calloc(int capacity)
Returns a newCXComment.Buffer
instance allocated withmemCalloc
.static CXComment
callocStack()
Returns a newCXComment
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXComment.Buffer
callocStack(int capacity)
Returns a newCXComment.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXComment.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXComment
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXComment
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXComment
create()
Returns a newCXComment
instance allocated withBufferUtils
.static CXComment.Buffer
create(int capacity)
Returns a newCXComment.Buffer
instance allocated withBufferUtils
.static CXComment
create(long address)
Returns a newCXComment
instance for the specified memory address.static CXComment.Buffer
create(long address, int capacity)
Create aCXComment.Buffer
instance at the specified memory.static CXComment
createSafe(long address)
static CXComment.Buffer
createSafe(long address, int capacity)
static CXComment
malloc()
Returns a newCXComment
instance allocated withmemAlloc
.static CXComment.Buffer
malloc(int capacity)
Returns a newCXComment.Buffer
instance allocated withmemAlloc
.static CXComment
mallocStack()
Returns a newCXComment
instance allocated on the thread-localMemoryStack
.static CXComment.Buffer
mallocStack(int capacity)
Returns a newCXComment.Buffer
instance allocated on the thread-localMemoryStack
.static CXComment.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Buffer
instance allocated on the specifiedMemoryStack
.static CXComment
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXComment
instance allocated on the specifiedMemoryStack
.static long
nASTNode(long struct)
Unsafe version ofASTNode()
.static long
nTranslationUnit(long struct)
Unsafe version ofTranslationUnit()
.int
sizeof()
long
TranslationUnit()
Returns the value of theTranslationUnit
field.
-
-
-
Constructor Detail
-
CXComment
public CXComment(java.nio.ByteBuffer container)
Creates aCXComment
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
-
ASTNode
public long ASTNode()
Returns the value of theASTNode
field.
-
TranslationUnit
public long TranslationUnit()
Returns the value of theTranslationUnit
field.
-
malloc
public static CXComment malloc()
Returns a newCXComment
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXComment calloc()
Returns a newCXComment
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXComment create()
Returns a newCXComment
instance allocated withBufferUtils
.
-
create
public static CXComment create(long address)
Returns a newCXComment
instance for the specified memory address.
-
createSafe
@Nullable public static CXComment createSafe(long address)
-
malloc
public static CXComment.Buffer malloc(int capacity)
Returns a newCXComment.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXComment.Buffer calloc(int capacity)
Returns a newCXComment.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXComment.Buffer create(int capacity)
Returns a newCXComment.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXComment.Buffer create(long address, int capacity)
Create aCXComment.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXComment.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXComment mallocStack()
Returns a newCXComment
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXComment callocStack()
Returns a newCXComment
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXComment mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXComment
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXComment callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXComment
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXComment.Buffer mallocStack(int capacity)
Returns a newCXComment.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXComment.Buffer callocStack(int capacity)
Returns a newCXComment.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXComment.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXComment.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nASTNode
public static long nASTNode(long struct)
Unsafe version ofASTNode()
.
-
nTranslationUnit
public static long nTranslationUnit(long struct)
Unsafe version ofTranslationUnit()
.
-
-