MCPcopy Create free account
hub / github.com/WheretIB/nullc / ClearNative

Method ClearNative

NULLC/Executor_X86.cpp:953–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953void ExecutorX86::ClearNative()
954{
955 memset(instList.data, 0, sizeof(x86Instruction) * instList.size());
956 instList.clear();
957
958 binCodeSize = 0;
959 lastInstructionCount = 0;
960 for(unsigned i = 0; i < oldFunctionLists.size(); i++)
961 NULLC::dealloc(oldFunctionLists[i].list);
962 oldFunctionLists.clear();
963
964 functionAddress.clear();
965
966 oldJumpTargetCount = 0;
967 oldFunctionSize = 0;
968}
969
970bool ExecutorX86::TranslateToNative()
971{

Callers 1

nullcCleanFunction · 0.80

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected