コード例 #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));
        }
コード例 #2
0
 public void Encrypt(ref byte[] data, bool toClient = false)
 {
     SendCipher.Encrypt(ref data, toClient);
 }
コード例 #3
0
 /// <summary>
 /// Encrypts packet data
 /// </summary>
 public Span <byte> Encrypt(ReadOnlySpan <byte> data, bool toClient = false) => SendCipher.Encrypt(data, toClient);