Class GoTypeBridge

java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoType
ghidra.app.util.bin.format.golang.rtti.types.GoTypeBridge
All Implemented Interfaces:
StructureMarkup<GoType>, StructureVerifier

public class GoTypeBridge extends GoType
A limited use wrapper/bridge between a GoType and a Ghidra DataType, this wrapper only supports the recoverDataType(GoTypeManager) call.
  • Constructor Details

  • Method Details

    • recoverDataType

      public DataType recoverDataType(GoTypeManager goTypes) throws IOException
      Description copied from class: GoType
      Converts a golang RTTI type structure into a Ghidra data type.

      This default implementation just creates an opaque blob of the appropriate size

      Overrides:
      recoverDataType in class GoType
      Parameters:
      goTypes - GoTypeManager
      Returns:
      DataType that represents the golang type
      Throws:
      IOException - if error getting name of the type
    • getPackagePathString

      public String getPackagePathString()
      Description copied from class: GoType
      Returns the package path of this type.
      Overrides:
      getPackagePathString in class GoType
      Returns:
      package path of this type
    • getName

      public String getName()
      Description copied from class: GoType
      Returns the name of this type.
      Overrides:
      getName in class GoType
      Returns:
      name of this type
    • toString

      public String toString()
      Overrides:
      toString in class GoType