Class GoStructField
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoStructField
Structure used to define a field in a
struct type
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of this field.getName()
Returns the name of this field.long
Returns the offset of this field.getType()
Returns the type of this field.void
setOffsetAnon
(long offsetAnon) Setter called by offsetAnon field's serialization, referred by fieldmapping annotation.
-
Constructor Details
-
GoStructField
public GoStructField()
-
-
Method Details
-
getGoName
Returns the name of this field.- Returns:
- name of this field as it's raw GoName value
- Throws:
IOException
- if error reading
-
getType
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
Returns the name of this field.- Returns:
- name of this field
-