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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aCXIndexOptions
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CXIndexOptions
calloc()
Returns a newCXIndexOptions
instance allocated withmemCalloc
.static CXIndexOptions.Buffer
calloc
(int capacity) Returns a newCXIndexOptions.Buffer
instance allocated withmemCalloc
.static CXIndexOptions.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newCXIndexOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIndexOptions
calloc
(MemoryStack stack) Returns a newCXIndexOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CXIndexOptions
create()
Returns a newCXIndexOptions
instance allocated withBufferUtils
.static CXIndexOptions.Buffer
create
(int capacity) Returns a newCXIndexOptions.Buffer
instance allocated withBufferUtils
.static CXIndexOptions
create
(long address) Returns a newCXIndexOptions
instance for the specified memory address.static CXIndexOptions.Buffer
create
(long address, int capacity) Create aCXIndexOptions.Buffer
instance at the specified memory.static @Nullable CXIndexOptions
createSafe
(long address) static @Nullable CXIndexOptions.Buffer
createSafe
(long address, int capacity) boolean
DisplayDiagnostics
(boolean value) Sets the specified value to theDisplayDiagnostics
field.boolean
ExcludeDeclarationsFromPCH
(boolean value) Sets the specified value to theExcludeDeclarationsFromPCH
field.@Nullable ByteBuffer
InvocationEmissionPath
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theInvocationEmissionPath
field.@Nullable String
static CXIndexOptions
malloc()
Returns a newCXIndexOptions
instance allocated withmemAlloc
.static CXIndexOptions.Buffer
malloc
(int capacity) Returns a newCXIndexOptions.Buffer
instance allocated withmemAlloc
.static CXIndexOptions.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newCXIndexOptions.Buffer
instance allocated on the specifiedMemoryStack
.static CXIndexOptions
malloc
(MemoryStack stack) Returns a newCXIndexOptions
instance allocated on the specifiedMemoryStack
.static int
nbitfield0
(long struct) static void
nbitfield0
(long struct, int value) static int
nDisplayDiagnostics
(long struct) Unsafe version ofDisplayDiagnostics()
.static void
nDisplayDiagnostics
(long struct, int value) Unsafe version ofDisplayDiagnostics
.static int
nExcludeDeclarationsFromPCH
(long struct) Unsafe version ofExcludeDeclarationsFromPCH()
.static void
nExcludeDeclarationsFromPCH
(long struct, int value) Unsafe version ofExcludeDeclarationsFromPCH
.static @Nullable ByteBuffer
nInvocationEmissionPath
(long struct) Unsafe version ofInvocationEmissionPath()
.static void
nInvocationEmissionPath
(long struct, @Nullable ByteBuffer value) Unsafe version ofInvocationEmissionPath
.static @Nullable String
nInvocationEmissionPathString
(long struct) Unsafe version ofInvocationEmissionPathString()
.static @Nullable ByteBuffer
nPreambleStoragePath
(long struct) Unsafe version ofPreambleStoragePath()
.static void
nPreambleStoragePath
(long struct, @Nullable ByteBuffer value) Unsafe version ofPreambleStoragePath
.static @Nullable String
nPreambleStoragePathString
(long struct) Unsafe version ofPreambleStoragePathString()
.static int
nReserved
(long struct) static void
nReserved
(long struct, int value) static int
nSize
(long struct) Unsafe version ofSize()
.static void
nSize
(long struct, int value) Unsafe version ofSize
.static int
nStorePreamblesInMemory
(long struct) Unsafe version ofStorePreamblesInMemory()
.static void
nStorePreamblesInMemory
(long struct, int value) Unsafe version ofStorePreamblesInMemory
.static byte
nThreadBackgroundPriorityForEditing
(long struct) Unsafe version ofThreadBackgroundPriorityForEditing()
.static void
nThreadBackgroundPriorityForEditing
(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForEditing
.static byte
nThreadBackgroundPriorityForIndexing
(long struct) Unsafe version ofThreadBackgroundPriorityForIndexing()
.static void
nThreadBackgroundPriorityForIndexing
(long struct, byte value) Unsafe version ofThreadBackgroundPriorityForIndexing
.@Nullable ByteBuffer
PreambleStoragePath
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thePreambleStoragePath
field.@Nullable String
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
(CXIndexOptions src) Copies the specified struct data to this struct.int
Size()
Size
(int value) Sets the specified value to theSize
field.Sets the default value to theSize
field.int
sizeof()
Returnssizeof(struct)
.boolean
StorePreamblesInMemory
(boolean value) Sets the specified value to theStorePreamblesInMemory
field.byte
ThreadBackgroundPriorityForEditing
(byte value) Sets the specified value to theThreadBackgroundPriorityForEditing
field.byte
ThreadBackgroundPriorityForIndexing
(byte value) Sets the specified value to theThreadBackgroundPriorityForIndexing
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aCXIndexOptions
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CXIndexOptions>
-
Size
public int Size()- Returns:
- the value of the
Size
field.
-
ThreadBackgroundPriorityForIndexing
public byte ThreadBackgroundPriorityForIndexing()- Returns:
- the value of the
ThreadBackgroundPriorityForIndexing
field.
-
ThreadBackgroundPriorityForEditing
public byte ThreadBackgroundPriorityForEditing()- Returns:
- the value of the
ThreadBackgroundPriorityForEditing
field.
-
ExcludeDeclarationsFromPCH
public boolean ExcludeDeclarationsFromPCH()- Returns:
- the value of the
ExcludeDeclarationsFromPCH
field.
-
DisplayDiagnostics
public boolean DisplayDiagnostics()- Returns:
- the value of the
DisplayDiagnostics
field.
-
StorePreamblesInMemory
public boolean StorePreamblesInMemory()- Returns:
- the value of the
StorePreamblesInMemory
field.
-
PreambleStoragePath
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thePreambleStoragePath
field.
-
PreambleStoragePathString
- Returns:
- the null-terminated string pointed to by the
PreambleStoragePath
field.
-
InvocationEmissionPath
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theInvocationEmissionPath
field.
-
InvocationEmissionPathString
- Returns:
- the null-terminated string pointed to by the
InvocationEmissionPath
field.
-
Size
Sets the specified value to theSize
field. -
Size$Default
Sets the default value to theSize
field. -
ThreadBackgroundPriorityForIndexing
Sets the specified value to theThreadBackgroundPriorityForIndexing
field. -
ThreadBackgroundPriorityForEditing
Sets the specified value to theThreadBackgroundPriorityForEditing
field. -
ExcludeDeclarationsFromPCH
Sets the specified value to theExcludeDeclarationsFromPCH
field. -
DisplayDiagnostics
Sets the specified value to theDisplayDiagnostics
field. -
StorePreamblesInMemory
Sets the specified value to theStorePreamblesInMemory
field. -
PreambleStoragePath
Sets the address of the specified encoded string to thePreambleStoragePath
field. -
InvocationEmissionPath
Sets the address of the specified encoded string to theInvocationEmissionPath
field. -
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 newCXIndexOptions
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCXIndexOptions
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCXIndexOptions
instance allocated withBufferUtils
. -
create
Returns a newCXIndexOptions
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCXIndexOptions.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCXIndexOptions.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCXIndexOptions.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCXIndexOptions.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newCXIndexOptions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCXIndexOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCXIndexOptions.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCXIndexOptions.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-