private void OnDBReceiveEventHandler(byte[] data, int nSize) { lock (_lock) { byte[] buff = new byte[nSize]; Buffer.BlockCopy(data, 0, buff, 0, nSize); mDBPacket.ProcessNetMsg(buff); } }
private static void OnDBReceive(byte[] data, int nSize) { byte[] buff = new byte[nSize]; Buffer.BlockCopy(data, 0, buff, 0, nSize); mDBPacket.ProcessNetMsg(buff); }