bool FPFilterFunc::filter(InstructionAPI::Instruction::Ptr inst, FPDecoder* decoder) { unsigned char buffer[64]; int size = inst->size(); memcpy(buffer, inst->ptr(), size); return decoder->filter(buffer, size); }
CFPatch::CFPatch(Type a, InstructionAPI::Instruction::Ptr b, TargetInt *c, const func_instance *d, Address e) : type(a), orig_insn(b), target(c), func(d), origAddr_(e) { if (b) ugly_insn = new instruction(b->ptr()); else ugly_insn = NULL; }