Class CXIdxImportedASTFileInfo

All Implemented Interfaces:
Pointer

public class CXIdxImportedASTFileInfo extends Struct<CXIdxImportedASTFileInfo>

 struct CXIdxImportedASTFileInfo {
     CXFile file;
     CXModule module;
     {@link CXIdxLoc CXIdxLoc} loc;
     int isImplicit;
 }
  • Field Details

    • SIZEOF

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

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

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

      public static final int MODULE
      The struct member offsets.
    • LOC

      public static final int LOC
      The struct member offsets.
    • ISIMPLICIT

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

    • CXIdxImportedASTFileInfo

      public CXIdxImportedASTFileInfo(ByteBuffer container)
      Creates a CXIdxImportedASTFileInfo 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<CXIdxImportedASTFileInfo>
    • file

      public long file()
      Returns:
      the value of the file field.
    • module

      public long module()
      Returns:
      the value of the module field.
    • loc

      public CXIdxLoc loc()
      Returns:
      a CXIdxLoc view of the loc field.
    • isImplicit

      public boolean isImplicit()
      Returns:
      the value of the isImplicit field.
    • create

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

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

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

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

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

      public static long nmodule(long struct)
      Unsafe version of module().
    • nloc

      public static CXIdxLoc nloc(long struct)
      Unsafe version of loc().
    • nisImplicit

      public static int nisImplicit(long struct)
      Unsafe version of isImplicit().