2025-05-06 09:13:24 +08:00
|
|
|
|
using dnlib.DotNet;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz.ObfusPasses.ConstObfus.Policies
|
|
|
|
|
{
|
|
|
|
|
public abstract class ObfuscationPolicyBase : IObfuscationPolicy
|
|
|
|
|
{
|
2025-05-08 12:36:06 +08:00
|
|
|
|
public abstract bool NeedObfuscateMethod(MethodDef method);
|
2025-05-09 11:03:05 +08:00
|
|
|
|
public abstract ConstCachePolicy GetMethodConstCachePolicy(MethodDef method);
|
|
|
|
|
public abstract bool NeedObfuscateDouble(MethodDef method, bool currentInLoop, double value);
|
|
|
|
|
public abstract bool NeedObfuscateFloat(MethodDef method, bool currentInLoop, float value);
|
|
|
|
|
public abstract bool NeedObfuscateInt(MethodDef method, bool currentInLoop, int value);
|
|
|
|
|
public abstract bool NeedObfuscateLong(MethodDef method, bool currentInLoop, long value);
|
|
|
|
|
public abstract bool NeedObfuscateString(MethodDef method, bool currentInLoop, string value);
|
|
|
|
|
public abstract bool NeedObfuscateArray(MethodDef method, bool currentInLoop, byte[] array);
|
2025-05-06 09:13:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|