insert_struct_member

summary: inject a member in the middle of a structure

description:

This sample will retrieve the type info object by its name, find the member at the specified offset, and insert a new member right before it

level: intermediate

Functions

insert_gap(struct_name, byte_offset, member_type)

Module Contents

insert_struct_member.insert_gap(struct_name: str, byte_offset: int, member_type: ida_typeinf.tinfo_t)