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.NativeResourceA parsed comment.Layout
struct CXComment { void const * ASTNode; CXTranslationUnit TranslationUnit; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXComment.BufferAn array ofCXCommentstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intASTNODEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTRANSLATIONUNITThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CXComment(java.nio.ByteBuffer container)Creates aCXCommentinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longASTNode()static CXCommentcalloc()Returns a newCXCommentinstance allocated withmemCalloc.static CXComment.Buffercalloc(int capacity)Returns a newCXComment.Bufferinstance allocated withmemCalloc.static CXComment.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXComment.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCommentcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCommentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCommentcallocStack()Deprecated.static CXComment.BuffercallocStack(int capacity)Deprecated.static CXComment.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCommentcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXCommentcreate()Returns a newCXCommentinstance allocated withBufferUtils.static CXComment.Buffercreate(int capacity)Returns a newCXComment.Bufferinstance allocated withBufferUtils.static CXCommentcreate(long address)Returns a newCXCommentinstance for the specified memory address.static CXComment.Buffercreate(long address, int capacity)Create aCXComment.Bufferinstance at the specified memory.static CXCommentcreateSafe(long address)static CXComment.BuffercreateSafe(long address, int capacity)static CXCommentmalloc()Returns a newCXCommentinstance allocated withmemAlloc.static CXComment.Buffermalloc(int capacity)Returns a newCXComment.Bufferinstance allocated withmemAlloc.static CXComment.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXComment.Bufferinstance allocated on the specifiedMemoryStack.static CXCommentmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCommentinstance allocated on the specifiedMemoryStack.static CXCommentmallocStack()Deprecated.static CXComment.BuffermallocStack(int capacity)Deprecated.static CXComment.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCommentmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnASTNode(long struct)Unsafe version ofASTNode().static longnTranslationUnit(long struct)Unsafe version ofTranslationUnit().intsizeof()longTranslationUnit()
-
-
-
Constructor Detail
-
CXComment
public CXComment(java.nio.ByteBuffer container)
Creates aCXCommentinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
ASTNode
public long ASTNode()
- Returns:
- the value of the
ASTNodefield.
-
TranslationUnit
public long TranslationUnit()
- Returns:
- the value of the
TranslationUnitfield.
-
malloc
public static CXComment malloc()
Returns a newCXCommentinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXComment calloc()
Returns a newCXCommentinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXComment create()
Returns a newCXCommentinstance allocated withBufferUtils.
-
create
public static CXComment create(long address)
Returns a newCXCommentinstance for the specified memory address.
-
createSafe
@Nullable public static CXComment createSafe(long address)
-
malloc
public static CXComment.Buffer malloc(int capacity)
Returns a newCXComment.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXComment.Buffer calloc(int capacity)
Returns a newCXComment.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXComment.Buffer create(int capacity)
Returns a newCXComment.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXComment.Buffer create(long address, int capacity)
Create aCXComment.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXComment.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXComment mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXComment callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXComment mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXComment callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXComment.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXComment.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXComment.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXComment.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXComment malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCommentinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXComment calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCommentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXComment.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXComment.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXComment.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-