Annotation Interface FieldMapping


@Retention(RUNTIME) @Target(FIELD) public @interface FieldMapping
Indicates that the tagged java field corresponds to a field in a Ghidra structure.

If the name of the java field does not match the Ghidra structure field name, the fieldName() property can be used to manually specify the Ghidra field name.

The type of the tagged java field can be a java primitive, or a structure mapped class.

  • Element Details

    • fieldName

      String fieldName
      Default:
      ""
    • readFunc

      Class<? extends FieldReadFunction> readFunc
      Default:
      ghidra.app.util.bin.format.golang.structmapping.FieldReadFunction.class
    • length

      int length
      Default:
      -1
    • signedness

      Signedness signedness
      Override the signedness the underlying numeric field.
      Returns:
      Default:
      Unspecified