blob: a6f3a19a4634b4723f7e05e38ffbb82f343cf5c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
public class LuaNetNode
{
public bool isRpc = false;
public uint type;
public uint tagID;
public bool isOnlyLua = false;
public byte[] buffer;
public int length;
public bool copyBuffer = true;
public DelLuaRespond resp;
public DelLuaError err;
public void SetBuff(byte[] buf, int length)
{
bool flag = buf != null && length > 0 && this.buffer != null;
if (flag)
{
for (int i = 0; i < this.buffer.Length; i++)
{
this.buffer[i] = 0;
}
bool flag2 = buf != null;
if (flag2)
{
Array.Copy(buf, this.buffer, length);
}
this.length = length;
}
}
public void Reset()
{
this.isRpc = false;
this.type = 0u;
this.tagID = 0u;
this.length = 0;
this.resp = null;
this.err = null;
}
}
}
|