Annotation Interface FieldOutput
Indicates that the tagged java field is to be included when constructing a variable length
Ghidra structure data type.
Using this annotation on a field indicates that the containing Ghidra structure has
variable length fields, and the containing class must implement the
StructureReader interface to allow deserialization of instances of the containing class.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the name of a GhidraDataTypethat will be used for this field when creating a Ghidra structure.Class<? extends FieldOutputFunction>Specifies a method that will return a GhidraDataTypethat should be used for this field when creating a Ghidra structure.booleanMarks this field as variable length, which will cause the Ghidra structure containing this field to have a "_NN" name suffix that specifies the length of this instance.intint
-
Element Details
-
fieldOutputFunc
Class<? extends FieldOutputFunction> fieldOutputFunc- Default:
- ghidra.app.util.bin.format.golang.structmapping.FieldOutputFunction.class
-
ordinal
int ordinal- Default:
- -1
-
offset
int offset- Default:
- -1
-
dataTypeName
String dataTypeNameSpecifies the name of a GhidraDataTypethat will be used for this field when creating a Ghidra structure.- Returns:
- Default:
- ""
-
isVariableLength
boolean isVariableLengthMarks this field as variable length, which will cause the Ghidra structure containing this field to have a "_NN" name suffix that specifies the length of this instance.- Returns:
- Default:
- false
-
getter
String getterSpecifies a method that will return a GhidraDataTypethat should be used for this field when creating a Ghidra structure.- Returns:
- Default:
- ""
-