Exemple #1
0
        /// <summary>
        /// Encrypts packet data
        /// </summary>
#if KMS || EMS
        public UInt16?Encrypt(ref byte[] data, bool toClient = false)
        {
            return(SendCipher.Encrypt(ref data, toClient));
        }
Exemple #2
0
 public void Encrypt(ref byte[] data, bool toClient = false)
 {
     SendCipher.Encrypt(ref data, toClient);
 }
 /// <summary>
 /// Encrypts packet data
 /// </summary>
 public Span <byte> Encrypt(ReadOnlySpan <byte> data, bool toClient = false) => SendCipher.Encrypt(data, toClient);