Package org.lwjgl.llvm
Class CXCompletionResult
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct CXCompletionResult {
enum CXCursorKind CursorKind;
CXCompletionString CompletionString;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXCompletionResult(ByteBuffer container) Creates aCXCompletionResultinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXCompletionResultcalloc()Returns a newCXCompletionResultinstance allocated withmemCalloc.static CXCompletionResult.Buffercalloc(int capacity) Returns a newCXCompletionResult.Bufferinstance allocated withmemCalloc.static CXCompletionResult.Buffercalloc(int capacity, MemoryStack stack) Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXCompletionResultcalloc(MemoryStack stack) Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longstatic 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 @Nullable CXCompletionResultcreateSafe(long address) static @Nullable CXCompletionResult.BuffercreateSafe(long address, int capacity) intstatic CXCompletionResultmalloc()Returns a newCXCompletionResultinstance allocated withmemAlloc.static CXCompletionResult.Buffermalloc(int capacity) Returns a newCXCompletionResult.Bufferinstance allocated withmemAlloc.static CXCompletionResult.Buffermalloc(int capacity, MemoryStack stack) Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStack.static CXCompletionResultmalloc(MemoryStack stack) Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStack.static longnCompletionString(long struct) Unsafe version ofCompletionString().static intnCursorKind(long struct) Unsafe version ofCursorKind().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<CXCompletionResult>
-
CursorKind
public int CursorKind()- Returns:
- the value of the
CursorKindfield.
-
CompletionString
public long CompletionString()- Returns:
- the value of the
CompletionStringfield.
-
malloc
Returns a newCXCompletionResultinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCXCompletionResultinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCXCompletionResultinstance allocated withBufferUtils. -
create
Returns a newCXCompletionResultinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCXCompletionResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCXCompletionResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCXCompletionResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCXCompletionResult.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCXCompletionResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCXCompletionResult.Bufferinstance allocated on the specifiedMemoryStackand 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().
-