public class CXIdxIncludedFileInfo
extends org.lwjgl.system.Struct
ppIncludedFile callback.
hashLoc – location of '\#' in the #include/#import directivefilename – filename as written in the #include/#import directivefile – the actual file that the #include/#import directive resolved toisModuleImport – non-zero if the directive was automatically turned into a module import
struct CXIdxIncludedFileInfo {
CXIdxLoc hashLoc;
char const * filename;
CXFile file;
int isImport;
int isAngled;
int isModuleImport;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXIdxIncludedFileInfo.Buffer
An array of
CXIdxIncludedFileInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FILE
The struct member offsets.
|
static int |
FILENAME
The struct member offsets.
|
static int |
HASHLOC
The struct member offsets.
|
static int |
ISANGLED
The struct member offsets.
|
static int |
ISIMPORT
The struct member offsets.
|
static int |
ISMODULEIMPORT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXIdxIncludedFileInfo(java.nio.ByteBuffer container)
Creates a
CXIdxIncludedFileInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXIdxIncludedFileInfo |
create(long address)
Returns a new
CXIdxIncludedFileInfo instance for the specified memory address. |
static CXIdxIncludedFileInfo.Buffer |
create(long address,
int capacity)
Create a
CXIdxIncludedFileInfo.Buffer instance at the specified memory. |
static CXIdxIncludedFileInfo |
createSafe(long address)
|
static CXIdxIncludedFileInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
file()
Returns the value of the
file field. |
java.nio.ByteBuffer |
filename()
Returns a
ByteBuffer view of the null-terminated string pointed to by the filename field. |
java.lang.String |
filenameString()
Decodes the null-terminated string pointed to by the
filename field. |
CXIdxLoc |
hashLoc()
Returns a
CXIdxLoc view of the hashLoc field. |
boolean |
isAngled()
Returns the value of the
isAngled field. |
boolean |
isImport()
Returns the value of the
isImport field. |
boolean |
isModuleImport()
Returns the value of the
isModuleImport field. |
static long |
nfile(long struct)
Unsafe version of
file(). |
static java.nio.ByteBuffer |
nfilename(long struct)
Unsafe version of
filename(). |
static java.lang.String |
nfilenameString(long struct)
Unsafe version of
filenameString(). |
static CXIdxLoc |
nhashLoc(long struct)
Unsafe version of
hashLoc(). |
static int |
nisAngled(long struct)
Unsafe version of
isAngled(). |
static int |
nisImport(long struct)
Unsafe version of
isImport(). |
static int |
nisModuleImport(long struct)
Unsafe version of
isModuleImport(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int HASHLOC
public static final int FILENAME
public static final int FILE
public static final int ISIMPORT
public static final int ISANGLED
public static final int ISMODULEIMPORT
public CXIdxIncludedFileInfo(java.nio.ByteBuffer container)
CXIdxIncludedFileInfo 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 java.nio.ByteBuffer filename()
ByteBuffer view of the null-terminated string pointed to by the filename field.public java.lang.String filenameString()
filename field.public long file()
file field.public boolean isImport()
isImport field.public boolean isAngled()
isAngled field.public boolean isModuleImport()
isModuleImport field.public static CXIdxIncludedFileInfo create(long address)
CXIdxIncludedFileInfo instance for the specified memory address.@Nullable public static CXIdxIncludedFileInfo createSafe(long address)
public static CXIdxIncludedFileInfo.Buffer create(long address, int capacity)
CXIdxIncludedFileInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXIdxIncludedFileInfo.Buffer createSafe(long address, int capacity)
public static java.nio.ByteBuffer nfilename(long struct)
filename().public static java.lang.String nfilenameString(long struct)
filenameString().public static long nfile(long struct)
file().public static int nisImport(long struct)
isImport().public static int nisAngled(long struct)
isAngled().public static int nisModuleImport(long struct)
isModuleImport().Copyright LWJGL. All Rights Reserved. License terms.