def add_port_1(ea, name): idaapi.set_name(ea, name) idaapi.create_byte(ea, 1)
def make_byte(self, offset, size=1): """Create a byte at the given offset in the IDB""" self.ret = idaapi.create_byte(offset, size) return self.ret
def name_byte(ea, name): idaapi.set_name(ea, name) idaapi.create_byte(ea, 1) idaapi.set_offset(ea, 0, 0)