Package org.lwjgl.llvm
Class CXCodeCompleteResults
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXCodeCompleteResults
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CXCodeCompleteResults extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Contains the results of code-completion.This data structure contains the results of code completion, as produced by
codeCompleteAt
. Its contents must be freed bydisposeCodeCompleteResults
.Member documentation
Results
– the code-completion resultsNumResults
– the number of code-completion results stored in theResults
array
Layout
struct CXCodeCompleteResults {
CXCompletionResult
* Results; unsigned NumResults; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXCodeCompleteResults.Buffer
An array ofCXCodeCompleteResults
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
NUMRESULTS
RESULTSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXCodeCompleteResults(java.nio.ByteBuffer container)
Creates aCXCodeCompleteResults
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CXCodeCompleteResults
calloc()
Returns a newCXCodeCompleteResults
instance allocated withmemCalloc
.static CXCodeCompleteResults.Buffer
calloc(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withmemCalloc
.static CXCodeCompleteResults
callocStack()
Returns a newCXCodeCompleteResults
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXCodeCompleteResults.Buffer
callocStack(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CXCodeCompleteResults.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCodeCompleteResults
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXCodeCompleteResults
create()
Returns a newCXCodeCompleteResults
instance allocated withBufferUtils
.static CXCodeCompleteResults.Buffer
create(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withBufferUtils
.static CXCodeCompleteResults
create(long address)
Returns a newCXCodeCompleteResults
instance for the specified memory address.static CXCodeCompleteResults.Buffer
create(long address, int capacity)
Create aCXCodeCompleteResults.Buffer
instance at the specified memory.static CXCodeCompleteResults
createSafe(long address)
static CXCodeCompleteResults.Buffer
createSafe(long address, int capacity)
static CXCodeCompleteResults
malloc()
Returns a newCXCodeCompleteResults
instance allocated withmemAlloc
.static CXCodeCompleteResults.Buffer
malloc(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withmemAlloc
.static CXCodeCompleteResults
mallocStack()
Returns a newCXCodeCompleteResults
instance allocated on the thread-localMemoryStack
.static CXCodeCompleteResults.Buffer
mallocStack(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the thread-localMemoryStack
.static CXCodeCompleteResults.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the specifiedMemoryStack
.static CXCodeCompleteResults
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults
instance allocated on the specifiedMemoryStack
.static int
nNumResults(long struct)
Unsafe version ofNumResults()
.static CXCompletionResult.Buffer
nResults(long struct)
Unsafe version ofResults()
.int
NumResults()
Returns the value of theNumResults
field.CXCompletionResult.Buffer
Results()
Returns aCXCompletionResult.Buffer
view of the struct array pointed to by theResults
field.int
sizeof()
-
-
-
Constructor Detail
-
CXCodeCompleteResults
public CXCodeCompleteResults(java.nio.ByteBuffer container)
Creates aCXCodeCompleteResults
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
-
Results
public CXCompletionResult.Buffer Results()
Returns aCXCompletionResult.Buffer
view of the struct array pointed to by theResults
field.
-
NumResults
public int NumResults()
Returns the value of theNumResults
field.
-
malloc
public static CXCodeCompleteResults malloc()
Returns a newCXCodeCompleteResults
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CXCodeCompleteResults calloc()
Returns a newCXCodeCompleteResults
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CXCodeCompleteResults create()
Returns a newCXCodeCompleteResults
instance allocated withBufferUtils
.
-
create
public static CXCodeCompleteResults create(long address)
Returns a newCXCodeCompleteResults
instance for the specified memory address.
-
createSafe
@Nullable public static CXCodeCompleteResults createSafe(long address)
-
malloc
public static CXCodeCompleteResults.Buffer malloc(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CXCodeCompleteResults.Buffer calloc(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CXCodeCompleteResults.Buffer create(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CXCodeCompleteResults.Buffer create(long address, int capacity)
Create aCXCodeCompleteResults.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXCodeCompleteResults.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CXCodeCompleteResults mallocStack()
Returns a newCXCodeCompleteResults
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CXCodeCompleteResults callocStack()
Returns a newCXCodeCompleteResults
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CXCodeCompleteResults mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CXCodeCompleteResults callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CXCodeCompleteResults.Buffer mallocStack(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CXCodeCompleteResults.Buffer callocStack(int capacity)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CXCodeCompleteResults.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CXCodeCompleteResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nResults
public static CXCompletionResult.Buffer nResults(long struct)
Unsafe version ofResults()
.
-
nNumResults
public static int nNumResults(long struct)
Unsafe version ofNumResults()
.
-
-