public Patch(IMemory memory, IntPtr targetAddress, byte[] replaceWith) { _protector = new MemoryPageProtector(new Win32Implementation(), targetAddress, (IntPtr)replaceWith.Length); _memory = memory; TargetAddress = targetAddress; _replaceWith = replaceWith; }
void before_each() { _protection = new StubMemoryProtection(); _protector = new MemoryPageProtector(_protection, ExpectedAddress, ExpectedLength); }