Class CXIdxIncludedFileInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CXIdxIncludedFileInfo>
org.lwjgl.llvm.CXIdxIncludedFileInfo
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class CXIdxIncludedFileInfo extends org.lwjgl.system.Struct<CXIdxIncludedFileInfo>
Data for ppIncludedFile callback.

Layout


 struct CXIdxIncludedFileInfo {
     CXIdxLoc hashLoc();
     char const * filename();
     CXFile file();
     int isImport;
     int isAngled;
     int isModuleImport();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • HASHLOC

      public static final int HASHLOC
      The struct member offsets.
    • FILENAME

      public static final int FILENAME
      The struct member offsets.
    • FILE

      public static final int FILE
      The struct member offsets.
    • ISIMPORT

      public static final int ISIMPORT
      The struct member offsets.
    • ISANGLED

      public static final int ISANGLED
      The struct member offsets.
    • ISMODULEIMPORT

      public static final int ISMODULEIMPORT
      The struct member offsets.
  • Constructor Details

    • CXIdxIncludedFileInfo

      public CXIdxIncludedFileInfo(ByteBuffer container)
      Creates a 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.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CXIdxIncludedFileInfo>
    • hashLoc

      public CXIdxLoc hashLoc()
      location of '\#' in the #include/#import directive
    • filename

      public ByteBuffer filename()
      filename as written in the #include/#import directive
    • filenameString

      public String filenameString()
      filename as written in the #include/#import directive
    • file

      public long file()
      the actual file that the #include/#import directive resolved to
    • isImport

      public boolean isImport()
      Returns:
      the value of the isImport field.
    • isAngled

      public boolean isAngled()
      Returns:
      the value of the isAngled field.
    • isModuleImport

      public boolean isModuleImport()
      non-zero if the directive was automatically turned into a module import
    • create

      public static CXIdxIncludedFileInfo create(long address)
      Returns a new CXIdxIncludedFileInfo instance for the specified memory address.
    • createSafe

      public static @Nullable CXIdxIncludedFileInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static CXIdxIncludedFileInfo.Buffer create(long address, int capacity)
      Create a CXIdxIncludedFileInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CXIdxIncludedFileInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nhashLoc

      public static CXIdxLoc nhashLoc(long struct)
      Unsafe version of hashLoc().
    • nfilename

      public static ByteBuffer nfilename(long struct)
      Unsafe version of filename().
    • nfilenameString

      public static String nfilenameString(long struct)
      Unsafe version of filenameString().
    • nfile

      public static long nfile(long struct)
      Unsafe version of file().
    • nisImport

      public static int nisImport(long struct)
      Unsafe version of isImport().
    • nisAngled

      public static int nisAngled(long struct)
      Unsafe version of isAngled().
    • nisModuleImport

      public static int nisModuleImport(long struct)
      Unsafe version of isModuleImport().