示例#1
0
 public NetData(int len, byte[] recvData, DataSocket socket) : this(socket)
 {
     length = len;
     data   = new byte[length];
     Array.Copy(recvData, data, recvData.Length);
 }
示例#2
0
 public NetData(byte[] recvData, int offset, int curLen, int totalLen, DataSocket socket) : this(socket)
 {
     length = totalLen;
     data   = new byte[totalLen];
     Array.Copy(recvData, offset, data, 0, curLen);
 }
示例#3
0
 public NetData(DataSocket socket)
 {
     mSocket = socket;
 }