26 lines
767 B
C#
26 lines
767 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static UnityEngine.Networking.UnityWebRequest;
|
|
|
|
namespace Obfuz.Virtualization.Functions
|
|
{
|
|
public class Int32FunctionXor : Int32FunctionBase
|
|
{
|
|
public override DataNodeType ReturnType => DataNodeType.Int32;
|
|
|
|
public override void CreateArguments(DataNodeType type, object v, CreateExpressionOptions options, List<ConstValue> args)
|
|
{
|
|
int value = (int)v;
|
|
|
|
int op1 = options.random.NextInt();
|
|
int op2 = value ^ op1;
|
|
args.Add(new ConstValue(DataNodeType.Int32, op1));
|
|
args.Add(new ConstValue(DataNodeType.Int32, op2));
|
|
}
|
|
}
|
|
}
|