Class GoFunctabEntry

java.lang.Object
ghidra.app.util.bin.format.golang.rtti.GoFunctabEntry

public class GoFunctabEntry extends Object
A structure that golang generates that maps between a function's entry point and the location of the function's GoFuncData structure.
  • Constructor Details

    • GoFunctabEntry

      public GoFunctabEntry()
  • Method Details

    • setEntryoff

      public void setEntryoff(long entryoff)
      Set the function's entry point using a relative offset.

      Called via deserialization for entryoff fieldmapping annotation.

      Parameters:
      entryoff - relative offset of the function's entry point
    • setEntry

      public void setEntry(long entry)
      Set the function's entry point using the absolute address.

      Called via deserialization for entry fieldmapping annotation.

      Parameters:
      entry - address of the function's entry point
    • getFuncAddress

      public Address getFuncAddress()
      Returns the address of the function's entry point
      Returns:
      address of the function's entry point
    • getFuncData

      public GoFuncData getFuncData() throws IOException
      Return the GoFuncData structure that contains metadata about the function.
      Returns:
      GoFuncData structure that contains metadata about the function.
      Throws:
      IOException - if error
    • getFuncoff

      public long getFuncoff()
      Returns the offset of the GoFuncData structure.
      Returns:
      offset of the GoFuncData structure.