Package org.lwjgl.llvm
Class CXCompletionResult
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXCompletionResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXCompletionResult extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA single result of code completion.Layout
struct CXCompletionResult { enum CXCursorKindCursorKind(); CXCompletionStringCompletionString(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXCompletionResult.BufferAn array ofCXCompletionResultstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPLETIONSTRING
CURSORKINDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXCompletionResult(java.nio.ByteBuffer container)Creates aCXCompletionResultinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CXCompletionResultcalloc()Returns a newCXCompletionResultinstance allocated withmemCalloc.static CXCompletionResult.Buffercalloc(int capacity)Returns a newCXCompletionResult.Bufferinstance allocated withmemCalloc.static CXCompletionResult.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCompletionResultcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCompletionResultcallocStack()Deprecated.static CXCompletionResult.BuffercallocStack(int capacity)Deprecated.static CXCompletionResult.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCompletionResultcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longCompletionString()the code-completion string that describes how to insert this code-completion result into the editing bufferstatic CXCompletionResultcreate()Returns a newCXCompletionResultinstance allocated withBufferUtils.static CXCompletionResult.Buffercreate(int capacity)Returns a newCXCompletionResult.Bufferinstance allocated withBufferUtils.static CXCompletionResultcreate(long address)Returns a newCXCompletionResultinstance for the specified memory address.static CXCompletionResult.Buffercreate(long address, int capacity)Create aCXCompletionResult.Bufferinstance at the specified memory.static CXCompletionResultcreateSafe(long address)static CXCompletionResult.BuffercreateSafe(long address, int capacity)intCursorKind()the kind of entity that this completion refers to.static CXCompletionResultmalloc()Returns a newCXCompletionResultinstance allocated withmemAlloc.static CXCompletionResult.Buffermalloc(int capacity)Returns a newCXCompletionResult.Bufferinstance allocated withmemAlloc.static CXCompletionResult.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStack.static CXCompletionResultmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStack.static CXCompletionResultmallocStack()Deprecated.static CXCompletionResult.BuffermallocStack(int capacity)Deprecated.static CXCompletionResult.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCompletionResultmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnCompletionString(long struct)Unsafe version ofCompletionString().static intnCursorKind(long struct)Unsafe version ofCursorKind().intsizeof()
-
-
-
Constructor Detail
-
CXCompletionResult
public CXCompletionResult(java.nio.ByteBuffer container)
Creates aCXCompletionResultinstance 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
-
CursorKind
public int CursorKind()
the kind of entity that this completion refers to.The cursor kind will be a macro, keyword, or a declaration (one of the
*Declcursor kinds), describing the entity that the completion is referring to.
-
CompletionString
public long CompletionString()
the code-completion string that describes how to insert this code-completion result into the editing buffer
-
malloc
public static CXCompletionResult malloc()
Returns a newCXCompletionResultinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXCompletionResult calloc()
Returns a newCXCompletionResultinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXCompletionResult create()
Returns a newCXCompletionResultinstance allocated withBufferUtils.
-
create
public static CXCompletionResult create(long address)
Returns a newCXCompletionResultinstance for the specified memory address.
-
createSafe
@Nullable public static CXCompletionResult createSafe(long address)
-
malloc
public static CXCompletionResult.Buffer malloc(int capacity)
Returns a newCXCompletionResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXCompletionResult.Buffer calloc(int capacity)
Returns a newCXCompletionResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXCompletionResult.Buffer create(int capacity)
Returns a newCXCompletionResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXCompletionResult.Buffer create(long address, int capacity)
Create aCXCompletionResult.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXCompletionResult.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXCompletionResult mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCompletionResult callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCompletionResult mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCompletionResult callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCompletionResult.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXCompletionResult.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCompletionResult.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 CXCompletionResult.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXCompletionResult malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXCompletionResult calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXCompletionResult.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXCompletionResult.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nCursorKind
public static int nCursorKind(long struct)
Unsafe version ofCursorKind().
-
nCompletionString
public static long nCompletionString(long struct)
Unsafe version ofCompletionString().
-
-