public void SendPacket(InterPacket pPacket, bool crypto = true) { byte[] data = new byte[pPacket.Length + 4]; Buffer.BlockCopy(crypto ? InterCrypto.EncryptData(mIVSend, pPacket.ToArray()) : pPacket.ToArray(), 0, data, 4, pPacket.Length); Buffer.BlockCopy(BitConverter.GetBytes((int)pPacket.Length), 0, data, 0, 4); Send(data); }