visit_tinfo
summary: recursively visit a type and its members
- description:
In this script, we show an example of tinfo_visitor_t to list a user define type members, recursively.
This scripts skips array & pointer members (by calling tinfo_visitor_t.prune_now())
level: intermediate
Attributes
Classes
Module Contents
- class visit_tinfo.tinfo_visitor
Bases:
ida_typeinf.tinfo_visitor_t- visit_type(out, tif, name, cmt)
Visit a subtype. this function must be implemented in the derived class. it may optionally fill out with the new type info. this can be used to modify types (in this case the ‘out’ argument of apply_to() may not be nullptr) return 0 to continue the traversal. return !=0 to stop the traversal.
- visit_tinfo.til
- visit_tinfo.idh_id
- visit_tinfo.tif