Class CXIdxIncludedFileInfo

All Implemented Interfaces:
Pointer

public class CXIdxIncludedFileInfo extends Struct<CXIdxIncludedFileInfo>

 struct CXIdxIncludedFileInfo {
     {@link CXIdxLoc 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<CXIdxIncludedFileInfo>
    • hashLoc

      public CXIdxLoc hashLoc()
      Returns:
      a CXIdxLoc view of the hashLoc field.
    • filename

      public ByteBuffer filename()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the filename field.
    • filenameString

      public String filenameString()
      Returns:
      the null-terminated string pointed to by the filename field.
    • file

      public long file()
      Returns:
      the value of the file field.
    • 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()
      Returns:
      the value of the isModuleImport field.
    • 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().