Package org.lwjgl.llvm
Class CXIndexOptions
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct CXIndexOptions {
unsigned Size;
unsigned char ThreadBackgroundPriorityForIndexing;
unsigned char ThreadBackgroundPriorityForEditing;
unsigned ExcludeDeclarationsFromPCH : 1;
unsigned DisplayDiagnostics : 1;
unsigned StorePreamblesInMemory : 1;
unsigned Reserved : 13;
char const * PreambleStoragePath;
char const * InvocationEmissionPath;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCXIndexOptions(ByteBuffer container) Creates aCXIndexOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIndexOptionscalloc()Returns a newCXIndexOptionsinstance allocated withmemCalloc.static CXIndexOptions.Buffercalloc(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withmemCalloc.static CXIndexOptions.Buffercalloc(int capacity, MemoryStack stack) Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIndexOptionscalloc(MemoryStack stack) Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXIndexOptionscreate()Returns a newCXIndexOptionsinstance allocated withBufferUtils.static CXIndexOptions.Buffercreate(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withBufferUtils.static CXIndexOptionscreate(long address) Returns a newCXIndexOptionsinstance for the specified memory address.static CXIndexOptions.Buffercreate(long address, int capacity) Create aCXIndexOptions.Bufferinstance at the specified memory.static @Nullable CXIndexOptionscreateSafe(long address) static @Nullable CXIndexOptions.BuffercreateSafe(long address, int capacity) booleanDisplayDiagnostics(boolean value) Sets the specified value to theDisplayDiagnosticsfield.booleanExcludeDeclarationsFromPCH(boolean value) Sets the specified value to theExcludeDeclarationsFromPCHfield.@Nullable ByteBufferInvocationEmissionPath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theInvocationEmissionPathfield.@Nullable Stringstatic CXIndexOptionsmalloc()Returns a newCXIndexOptionsinstance allocated withmemAlloc.static CXIndexOptions.Buffermalloc(int capacity) Returns a newCXIndexOptions.Bufferinstance allocated withmemAlloc.static CXIndexOptions.Buffermalloc(int capacity, MemoryStack stack) Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStack.static CXIndexOptionsmalloc(MemoryStack stack) Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStack.static intnbitfield0(long struct) static voidnbitfield0(long struct, int value) static intnDisplayDiagnostics(long struct) Unsafe version ofDisplayDiagnostics().static voidnDisplayDiagnostics(long struct, int value) Unsafe version ofDisplayDiagnostics.static intnExcludeDeclarationsFromPCH(long struct) Unsafe version ofExcludeDeclarationsFromPCH().static voidnExcludeDeclarationsFromPCH(long struct, int value) Unsafe version ofExcludeDeclarationsFromPCH.static @Nullable ByteBuffernInvocationEmissionPath(long struct) Unsafe version ofInvocationEmissionPath().static voidnInvocationEmissionPath(long struct, @Nullable ByteBuffer value) Unsafe version ofInvocationEmissionPath.static @Nullable StringnInvocationEmissionPathString(long struct) Unsafe version ofInvocationEmissionPathString().static @Nullable ByteBuffernPreambleStoragePath(long struct) Unsafe version ofPreambleStoragePath().static voidnPreambleStoragePath(long struct, @Nullable ByteBuffer value) Unsafe version ofPreambleStoragePath.static @Nullable StringnPreambleStoragePathString(long struct) Unsafe version ofPreambleStoragePathString().static intnReserved(long struct) static voidnReserved(long struct, int value) static intnSize(long struct) Unsafe version ofSize().static voidnSize(long struct, int value) Unsafe version ofSize.static intnStorePreamblesInMemory(long struct) Unsafe version ofStorePreamblesInMemory().static voidnStorePreamblesInMemory(long struct, int value) Unsafe version ofStorePreamblesInMemory.static bytenThreadBackgroundPriorityForEditing(long struct) Unsafe version ofThreadBackgroundPriorityForEditing().static voidnThreadBackgroundPriorityForEditing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForEditing.static bytenThreadBackgroundPriorityForIndexing(long struct) Unsafe version ofThreadBackgroundPriorityForIndexing().static voidnThreadBackgroundPriorityForIndexing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForIndexing.@Nullable ByteBufferPreambleStoragePath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thePreambleStoragePathfield.@Nullable Stringset(int Size, byte ThreadBackgroundPriorityForIndexing, byte ThreadBackgroundPriorityForEditing, boolean ExcludeDeclarationsFromPCH, boolean DisplayDiagnostics, boolean StorePreamblesInMemory, @Nullable ByteBuffer PreambleStoragePath, @Nullable ByteBuffer InvocationEmissionPath) Initializes this struct with the specified values.set(CXIndexOptions src) Copies the specified struct data to this struct.intSize()Size(int value) Sets the specified value to theSizefield.Sets the default value to theSizefield.intsizeof()Returnssizeof(struct).booleanStorePreamblesInMemory(boolean value) Sets the specified value to theStorePreamblesInMemoryfield.byteThreadBackgroundPriorityForEditing(byte value) Sets the specified value to theThreadBackgroundPriorityForEditingfield.byteThreadBackgroundPriorityForIndexing(byte value) Sets the specified value to theThreadBackgroundPriorityForIndexingfield.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. -
SIZE
public static final int SIZEThe struct member offsets. -
THREADBACKGROUNDPRIORITYFORINDEXING
public static final int THREADBACKGROUNDPRIORITYFORINDEXINGThe struct member offsets. -
THREADBACKGROUNDPRIORITYFOREDITING
public static final int THREADBACKGROUNDPRIORITYFOREDITINGThe struct member offsets. -
BITFIELD0
public static final int BITFIELD0The struct member offsets. -
PREAMBLESTORAGEPATH
public static final int PREAMBLESTORAGEPATHThe struct member offsets. -
INVOCATIONEMISSIONPATH
public static final int INVOCATIONEMISSIONPATHThe struct member offsets.
-
-
Constructor Details
-
CXIndexOptions
Creates aCXIndexOptionsinstance 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<CXIndexOptions>
-
Size
public int Size()- Returns:
- the value of the
Sizefield.
-
ThreadBackgroundPriorityForIndexing
public byte ThreadBackgroundPriorityForIndexing()- Returns:
- the value of the
ThreadBackgroundPriorityForIndexingfield.
-
ThreadBackgroundPriorityForEditing
public byte ThreadBackgroundPriorityForEditing()- Returns:
- the value of the
ThreadBackgroundPriorityForEditingfield.
-
ExcludeDeclarationsFromPCH
public boolean ExcludeDeclarationsFromPCH()- Returns:
- the value of the
ExcludeDeclarationsFromPCHfield.
-
DisplayDiagnostics
public boolean DisplayDiagnostics()- Returns:
- the value of the
DisplayDiagnosticsfield.
-
StorePreamblesInMemory
public boolean StorePreamblesInMemory()- Returns:
- the value of the
StorePreamblesInMemoryfield.
-
PreambleStoragePath
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thePreambleStoragePathfield.
-
PreambleStoragePathString
- Returns:
- the null-terminated string pointed to by the
PreambleStoragePathfield.
-
InvocationEmissionPath
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theInvocationEmissionPathfield.
-
InvocationEmissionPathString
- Returns:
- the null-terminated string pointed to by the
InvocationEmissionPathfield.
-
Size
Sets the specified value to theSizefield. -
Size$Default
Sets the default value to theSizefield. -
ThreadBackgroundPriorityForIndexing
Sets the specified value to theThreadBackgroundPriorityForIndexingfield. -
ThreadBackgroundPriorityForEditing
Sets the specified value to theThreadBackgroundPriorityForEditingfield. -
ExcludeDeclarationsFromPCH
Sets the specified value to theExcludeDeclarationsFromPCHfield. -
DisplayDiagnostics
Sets the specified value to theDisplayDiagnosticsfield. -
StorePreamblesInMemory
Sets the specified value to theStorePreamblesInMemoryfield. -
PreambleStoragePath
Sets the address of the specified encoded string to thePreambleStoragePathfield. -
InvocationEmissionPath
Sets the address of the specified encoded string to theInvocationEmissionPathfield. -
set
public CXIndexOptions set(int Size, byte ThreadBackgroundPriorityForIndexing, byte ThreadBackgroundPriorityForEditing, boolean ExcludeDeclarationsFromPCH, boolean DisplayDiagnostics, boolean StorePreamblesInMemory, @Nullable ByteBuffer PreambleStoragePath, @Nullable ByteBuffer InvocationEmissionPath) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCXIndexOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCXIndexOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCXIndexOptionsinstance allocated withBufferUtils. -
create
Returns a newCXIndexOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIndexOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCXIndexOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCXIndexOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCXIndexOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCXIndexOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCXIndexOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nSize
public static int nSize(long struct) Unsafe version ofSize(). -
nThreadBackgroundPriorityForIndexing
public static byte nThreadBackgroundPriorityForIndexing(long struct) Unsafe version ofThreadBackgroundPriorityForIndexing(). -
nThreadBackgroundPriorityForEditing
public static byte nThreadBackgroundPriorityForEditing(long struct) Unsafe version ofThreadBackgroundPriorityForEditing(). -
nbitfield0
public static int nbitfield0(long struct) -
nExcludeDeclarationsFromPCH
public static int nExcludeDeclarationsFromPCH(long struct) Unsafe version ofExcludeDeclarationsFromPCH(). -
nDisplayDiagnostics
public static int nDisplayDiagnostics(long struct) Unsafe version ofDisplayDiagnostics(). -
nStorePreamblesInMemory
public static int nStorePreamblesInMemory(long struct) Unsafe version ofStorePreamblesInMemory(). -
nReserved
public static int nReserved(long struct) -
nPreambleStoragePath
Unsafe version ofPreambleStoragePath(). -
nPreambleStoragePathString
Unsafe version ofPreambleStoragePathString(). -
nInvocationEmissionPath
Unsafe version ofInvocationEmissionPath(). -
nInvocationEmissionPathString
Unsafe version ofInvocationEmissionPathString(). -
nSize
public static void nSize(long struct, int value) Unsafe version ofSize. -
nThreadBackgroundPriorityForIndexing
public static void nThreadBackgroundPriorityForIndexing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForIndexing. -
nThreadBackgroundPriorityForEditing
public static void nThreadBackgroundPriorityForEditing(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForEditing. -
nbitfield0
public static void nbitfield0(long struct, int value) -
nExcludeDeclarationsFromPCH
public static void nExcludeDeclarationsFromPCH(long struct, int value) Unsafe version ofExcludeDeclarationsFromPCH. -
nDisplayDiagnostics
public static void nDisplayDiagnostics(long struct, int value) Unsafe version ofDisplayDiagnostics. -
nStorePreamblesInMemory
public static void nStorePreamblesInMemory(long struct, int value) Unsafe version ofStorePreamblesInMemory. -
nReserved
public static void nReserved(long struct, int value) -
nPreambleStoragePath
Unsafe version ofPreambleStoragePath. -
nInvocationEmissionPath
Unsafe version ofInvocationEmissionPath.
-