Class CXIdxIncludedFileInfo

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

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

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HASHLOC, FILENAME, FILE, ISIMPORT, ISANGLED, ISMODULEIMPORT

        The struct member offsets.
    • Constructor Detail

      • CXIdxIncludedFileInfo

        public CXIdxIncludedFileInfo​(java.nio.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 Detail

      • sizeof

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

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

        public java.nio.ByteBuffer filename()
        
        public java.lang.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

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

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

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

        public static java.lang.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().