modify_struct_member
summary: modify structure members attributes programmatically
- description:
This example shows how to access & modify certain less-obvious attributes of structure members (pointer size, representation, …)
We will first create the structure without those, and then show how to programmatically modify them.
level: intermediate
Attributes
Module Contents
- modify_struct_member.struct_def = Multiline-String
Show Value
""" struct RTTICompleteObjectLocator { int signature; int offset; int cdOffset; int pTypeDescriptor; // we will eventually want: int *__ptr32 pTypeDescriptor __offset(OFF64|RVAOFF); int pClassDescriptor; // we will eventually want: int *__ptr32 pClassDescriptor __offset(OFF64|RVAOFF); int pSelf; // we will eventually want: int *__ptr32 pSelf __offset(OFF64|RVAOFF); }; """
- modify_struct_member.tif
- modify_struct_member.new_type
- modify_struct_member.new_repr