Package org.lwjgl.llvm
Class CXCompletionResult
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
A single result of code completion.
Layout
struct CXCompletionResult {
enum CXCursorKind CursorKind()
;
CXCompletionString CompletionString()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCXCompletionResult
(ByteBuffer container) Creates aCXCompletionResult
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXCompletionResult
calloc()
Returns a newCXCompletionResult
instance allocated withmemCalloc
.static CXCompletionResult.Buffer
calloc
(int capacity) Returns a newCXCompletionResult.Buffer
instance allocated withmemCalloc
.static CXCompletionResult.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCXCompletionResult.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCompletionResult
calloc
(MemoryStack stack) Returns a newCXCompletionResult
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCompletionResult
Deprecated.static CXCompletionResult.Buffer
callocStack
(int capacity) Deprecated.static CXCompletionResult.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static CXCompletionResult
callocStack
(MemoryStack stack) Deprecated.long
the code-completion string that describes how to insert this code-completion result into the editing bufferstatic CXCompletionResult
create()
Returns a newCXCompletionResult
instance allocated withBufferUtils
.static CXCompletionResult.Buffer
create
(int capacity) Returns a newCXCompletionResult.Buffer
instance allocated withBufferUtils
.static CXCompletionResult
create
(long address) Returns a newCXCompletionResult
instance for the specified memory address.static CXCompletionResult.Buffer
create
(long address, int capacity) Create aCXCompletionResult.Buffer
instance at the specified memory.static CXCompletionResult
createSafe
(long address) static CXCompletionResult.Buffer
createSafe
(long address, int capacity) int
the kind of entity that this completion refers to.static CXCompletionResult
malloc()
Returns a newCXCompletionResult
instance allocated withmemAlloc
.static CXCompletionResult.Buffer
malloc
(int capacity) Returns a newCXCompletionResult.Buffer
instance allocated withmemAlloc
.static CXCompletionResult.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCXCompletionResult.Buffer
instance allocated on the specifiedMemoryStack
.static CXCompletionResult
malloc
(MemoryStack stack) Returns a newCXCompletionResult
instance allocated on the specifiedMemoryStack
.static CXCompletionResult
Deprecated.static CXCompletionResult.Buffer
mallocStack
(int capacity) Deprecated.static CXCompletionResult.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static CXCompletionResult
mallocStack
(MemoryStack stack) Deprecated.static long
nCompletionString
(long struct) Unsafe version ofCompletionString()
.static int
nCursorKind
(long struct) Unsafe version ofCursorKind()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CURSORKIND
public static final int CURSORKINDThe struct member offsets. -
COMPLETIONSTRING
public static final int COMPLETIONSTRINGThe struct member offsets.
-
-
Constructor Details
-
CXCompletionResult
Creates aCXCompletionResult
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CXCompletionResult>
-
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
*Decl
cursor 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
Returns a newCXCompletionResult
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCXCompletionResult
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCXCompletionResult
instance allocated withBufferUtils
. -
create
Returns a newCXCompletionResult
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCXCompletionResult.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCXCompletionResult.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCXCompletionResult.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCXCompletionResult.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCXCompletionResult
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCXCompletionResult
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCXCompletionResult.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCXCompletionResult.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nCursorKind
public static int nCursorKind(long struct) Unsafe version ofCursorKind()
. -
nCompletionString
public static long nCompletionString(long struct) Unsafe version ofCompletionString()
.
-