[+] 完成基于特征码的防撤回查找替换功能

This commit is contained in:
huiyadanli
2020-01-01 18:32:54 +08:00
parent 604f84b0f6
commit 88f6ae7417
7 changed files with 182 additions and 19 deletions
+11
View File
@@ -12,6 +12,17 @@ namespace RevokeMsgPatcher.Model
public byte[] Content { get; set; }
public Change()
{
}
public Change(long position, byte[] content)
{
Position = position;
Content = content;
}
public Change Clone()
{
Change o = new Change();
+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RevokeMsgPatcher.Model.Enum
{
/// <summary>
/// 两种打补丁的方式
/// 精准(指定位置替换)、通用(特征码替换)
/// </summary>
public enum PatchType
{
Accurate, // 精准(指定位置替换)
Common // 通用(特征码替换)
}
}