public class CXCodeCompleteResults
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
This data structure contains the results of code completion, as produced by codeCompleteAt. Its contents must be freed by
disposeCodeCompleteResults.
Results – the code-completion resultsNumResults – the number of code-completion results stored in the Results array
struct CXCodeCompleteResults {
CXCompletionResult * Results;
unsigned NumResults;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXCodeCompleteResults.Buffer
An array of
CXCodeCompleteResults structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NUMRESULTS
The struct member offsets.
|
static int |
RESULTS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXCodeCompleteResults(java.nio.ByteBuffer container)
Creates a
CXCodeCompleteResults instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXCodeCompleteResults |
calloc()
Returns a new
CXCodeCompleteResults instance allocated with memCalloc. |
static CXCodeCompleteResults.Buffer |
calloc(int capacity)
Returns a new
CXCodeCompleteResults.Buffer instance allocated with memCalloc. |
static CXCodeCompleteResults |
callocStack()
Returns a new
CXCodeCompleteResults instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCodeCompleteResults.Buffer |
callocStack(int capacity)
Returns a new
CXCodeCompleteResults.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXCodeCompleteResults.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCodeCompleteResults.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXCodeCompleteResults |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCodeCompleteResults instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXCodeCompleteResults |
create()
Returns a new
CXCodeCompleteResults instance allocated with BufferUtils. |
static CXCodeCompleteResults.Buffer |
create(int capacity)
Returns a new
CXCodeCompleteResults.Buffer instance allocated with BufferUtils. |
static CXCodeCompleteResults |
create(long address)
Returns a new
CXCodeCompleteResults instance for the specified memory address. |
static CXCodeCompleteResults.Buffer |
create(long address,
int capacity)
Create a
CXCodeCompleteResults.Buffer instance at the specified memory. |
static CXCodeCompleteResults |
createSafe(long address)
|
static CXCodeCompleteResults.Buffer |
createSafe(long address,
int capacity)
|
static CXCodeCompleteResults |
malloc()
Returns a new
CXCodeCompleteResults instance allocated with memAlloc. |
static CXCodeCompleteResults.Buffer |
malloc(int capacity)
Returns a new
CXCodeCompleteResults.Buffer instance allocated with memAlloc. |
static CXCodeCompleteResults |
mallocStack()
Returns a new
CXCodeCompleteResults instance allocated on the thread-local MemoryStack. |
static CXCodeCompleteResults.Buffer |
mallocStack(int capacity)
Returns a new
CXCodeCompleteResults.Buffer instance allocated on the thread-local MemoryStack. |
static CXCodeCompleteResults.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXCodeCompleteResults.Buffer instance allocated on the specified MemoryStack. |
static CXCodeCompleteResults |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXCodeCompleteResults instance allocated on the specified MemoryStack. |
static int |
nNumResults(long struct)
Unsafe version of
NumResults(). |
static CXCompletionResult.Buffer |
nResults(long struct)
Unsafe version of
Results(). |
int |
NumResults()
Returns the value of the
NumResults field. |
CXCompletionResult.Buffer |
Results()
Returns a
CXCompletionResult.Buffer view of the struct array pointed to by the Results field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RESULTS
public static final int NUMRESULTS
public CXCodeCompleteResults(java.nio.ByteBuffer container)
CXCodeCompleteResults instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic CXCompletionResult.Buffer Results()
CXCompletionResult.Buffer view of the struct array pointed to by the Results field.public int NumResults()
NumResults field.public static CXCodeCompleteResults malloc()
CXCodeCompleteResults instance allocated with memAlloc. The instance must be explicitly freed.public static CXCodeCompleteResults calloc()
CXCodeCompleteResults instance allocated with memCalloc. The instance must be explicitly freed.public static CXCodeCompleteResults create()
CXCodeCompleteResults instance allocated with BufferUtils.public static CXCodeCompleteResults create(long address)
CXCodeCompleteResults instance for the specified memory address.@Nullable public static CXCodeCompleteResults createSafe(long address)
public static CXCodeCompleteResults.Buffer malloc(int capacity)
CXCodeCompleteResults.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer calloc(int capacity)
CXCodeCompleteResults.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer create(int capacity)
CXCodeCompleteResults.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer create(long address, int capacity)
CXCodeCompleteResults.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXCodeCompleteResults.Buffer createSafe(long address, int capacity)
public static CXCodeCompleteResults mallocStack()
CXCodeCompleteResults instance allocated on the thread-local MemoryStack.public static CXCodeCompleteResults callocStack()
CXCodeCompleteResults instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXCodeCompleteResults mallocStack(org.lwjgl.system.MemoryStack stack)
CXCodeCompleteResults instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXCodeCompleteResults callocStack(org.lwjgl.system.MemoryStack stack)
CXCodeCompleteResults instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXCodeCompleteResults.Buffer mallocStack(int capacity)
CXCodeCompleteResults.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer callocStack(int capacity)
CXCodeCompleteResults.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCodeCompleteResults.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXCodeCompleteResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXCodeCompleteResults.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXCompletionResult.Buffer nResults(long struct)
Results().public static int nNumResults(long struct)
NumResults().Copyright LWJGL. All Rights Reserved. License terms.