Class GoFunctabEntry
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.GoFunctabEntry
A structure that golang generates that maps between a function's entry point and the
location of the function's GoFuncData structure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the address of the function's entry pointReturn the GoFuncData structure that contains metadata about the function.long
Returns the offset of the GoFuncData structure.void
setEntry
(long entry) Set the function's entry point using the absolute address.void
setEntryoff
(long entryoff) Set the function's entry point using a relative offset.
-
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
Returns the address of the function's entry point- Returns:
- address of the function's entry point
-
getFuncData
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.
-