Class BuiltinTypeDescriptor

java.lang.Object
ghidra.app.util.bin.format.swift.types.BuiltinTypeDescriptor
All Implemented Interfaces:
SwiftStructure, StructConverter

public final class BuiltinTypeDescriptor extends Object implements SwiftStructure
Represents a Swift BuiltinTypeDescriptor structure
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getTypeName

      public String getTypeName()
      Gets the type name
      Returns:
      The type name
    • getSize

      public int getSize()
      Gets the size
      Returns:
      The size
    • getAlignmentAndFlags

      public int getAlignmentAndFlags()
      Gets the alignment and flags
      Returns:
      The alignment and flags
    • getStride

      public int getStride()
      Gets the stride
      Returns:
      The stride
    • getNumExtraInhabitants

      public int getNumExtraInhabitants()
      Gets the number of extra inhabitants
      Returns:
      The number of extra inhabitants
    • getStructureName

      public String getStructureName()
      Description copied from interface: SwiftStructure
      Gets the name of the SwiftStructure
      Specified by:
      getStructureName in interface SwiftStructure
      Returns:
      The name of the SwiftStructure
    • getDescription

      public String getDescription()
      Description copied from interface: SwiftStructure
      Gets a short description of the SwiftStructure
      Specified by:
      getDescription in interface SwiftStructure
      Returns:
      A short description of the SwiftStructure
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

       class A {
           int foo;
           double bar;
       }
       

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException
      See Also: