Class GoStructField

java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoStructField

public class GoStructField extends Object
Structure used to define a field in a struct type.
  • Constructor Details

    • GoStructField

      public GoStructField()
  • Method Details

    • getGoName

      public GoName getGoName() throws IOException
      Returns the name of this field.
      Returns:
      name of this field as it's raw GoName value
      Throws:
      IOException - if error reading
    • getType

      public GoType getType() throws IOException
      Returns the type of this field.
      Returns:
      type of this field
      Throws:
      IOException - if error reading
    • setOffsetAnon

      public void setOffsetAnon(long offsetAnon)
      Setter called by offsetAnon field's serialization, referred by fieldmapping annotation.
      Parameters:
      offsetAnon - value
    • getOffset

      public long getOffset()
      Returns the offset of this field.
      Returns:
      offset of this field
    • getName

      public String getName()
      Returns the name of this field.
      Returns:
      name of this field