public void Apply()
{
if (IsApplied) return;
_protector.ExecuteWithProtection(MemoryProtectionConstraints.PAGE_EXECUTE_READWRITE, () =>
{
_original = _memory.ReadBytes(TargetAddress, _replaceWith.Length);
_memory.WriteBytes(TargetAddress, _replaceWith);
});
IsApplied = true;
}