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.NativeResourceContains the results of code-completion.This data structure contains the results of code completion, as produced by
codeCompleteAt. Its contents must be freed bydisposeCodeCompleteResults.Layout
struct CXCodeCompleteResults {CXCompletionResult*Results(); unsignedNumResults(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXCodeCompleteResults.BufferAn array ofCXCodeCompleteResultsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNUMRESULTS
RESULTSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXCodeCompleteResults(java.nio.ByteBuffer container)Creates aCXCodeCompleteResultsinstance 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 CXCodeCompleteResultscalloc()Returns a newCXCodeCompleteResultsinstance allocated withmemCalloc.static CXCodeCompleteResults.Buffercalloc(int capacity)Returns a newCXCodeCompleteResults.Bufferinstance allocated withmemCalloc.static CXCodeCompleteResults.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCodeCompleteResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCodeCompleteResultscalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCodeCompleteResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCodeCompleteResultscallocStack()Deprecated.static CXCodeCompleteResults.BuffercallocStack(int capacity)Deprecated.static CXCodeCompleteResults.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCodeCompleteResultscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXCodeCompleteResultscreate()Returns a newCXCodeCompleteResultsinstance allocated withBufferUtils.static CXCodeCompleteResults.Buffercreate(int capacity)Returns a newCXCodeCompleteResults.Bufferinstance allocated withBufferUtils.static CXCodeCompleteResultscreate(long address)Returns a newCXCodeCompleteResultsinstance for the specified memory address.static CXCodeCompleteResults.Buffercreate(long address, int capacity)Create aCXCodeCompleteResults.Bufferinstance at the specified memory.static CXCodeCompleteResultscreateSafe(long address)static CXCodeCompleteResults.BuffercreateSafe(long address, int capacity)static CXCodeCompleteResultsmalloc()Returns a newCXCodeCompleteResultsinstance allocated withmemAlloc.static CXCodeCompleteResults.Buffermalloc(int capacity)Returns a newCXCodeCompleteResults.Bufferinstance allocated withmemAlloc.static CXCodeCompleteResults.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXCodeCompleteResults.Bufferinstance allocated on the specifiedMemoryStack.static CXCodeCompleteResultsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXCodeCompleteResultsinstance allocated on the specifiedMemoryStack.static CXCodeCompleteResultsmallocStack()Deprecated.static CXCodeCompleteResults.BuffermallocStack(int capacity)Deprecated.static CXCodeCompleteResults.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXCodeCompleteResultsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnNumResults(long struct)Unsafe version ofNumResults().static CXCompletionResult.BuffernResults(long struct)Unsafe version ofResults().intNumResults()the number of code-completion results stored in theResultsarrayCXCompletionResult.BufferResults()the code-completion resultsintsizeof()
-
-
-
Constructor Detail
-
CXCodeCompleteResults
public CXCodeCompleteResults(java.nio.ByteBuffer container)
Creates aCXCodeCompleteResultsinstance 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
-
Results
public CXCompletionResult.Buffer Results()
the code-completion results
-
NumResults
public int NumResults()
the number of code-completion results stored in theResultsarray
-
malloc
public static CXCodeCompleteResults malloc()
Returns a newCXCodeCompleteResultsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXCodeCompleteResults calloc()
Returns a newCXCodeCompleteResultsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXCodeCompleteResults create()
Returns a newCXCodeCompleteResultsinstance allocated withBufferUtils.
-
create
public static CXCodeCompleteResults create(long address)
Returns a newCXCodeCompleteResultsinstance for the specified memory address.
-
createSafe
@Nullable public static CXCodeCompleteResults createSafe(long address)
-
malloc
public static CXCodeCompleteResults.Buffer malloc(int capacity)
Returns a newCXCodeCompleteResults.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXCodeCompleteResults.Buffer calloc(int capacity)
Returns a newCXCodeCompleteResults.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXCodeCompleteResults.Buffer create(int capacity)
Returns a newCXCodeCompleteResults.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXCodeCompleteResults.Buffer create(long address, int capacity)
Create aCXCodeCompleteResults.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXCodeCompleteResults.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXCodeCompleteResults mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCodeCompleteResults callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCodeCompleteResults mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXCodeCompleteResults callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCodeCompleteResults.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXCodeCompleteResults.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXCodeCompleteResults.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 CXCodeCompleteResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXCodeCompleteResults malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXCodeCompleteResults calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXCodeCompleteResults.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXCodeCompleteResults.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXCodeCompleteResults.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-