BananaHook.Infrastructure.Patch.Patch C# (CSharp) Method

Patch() public method

public Patch ( IMemory memory, IntPtr targetAddress, byte replaceWith ) : System
memory IMemory
targetAddress System.IntPtr
replaceWith byte
return System
        public Patch(IMemory memory, IntPtr targetAddress, byte[] replaceWith)
        {
            _protector = new MemoryPageProtector(new Win32Implementation(), targetAddress, (IntPtr)replaceWith.Length);
            _memory = memory;
            TargetAddress = targetAddress;
            _replaceWith = replaceWith;
        }