public NetData(int len, byte[] recvData, DataSocket socket) : this(socket) { length = len; data = new byte[length]; Array.Copy(recvData, data, recvData.Length); }
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); }
public NetData(DataSocket socket) { mSocket = socket; }