/// <summary> /// Encrypts packet data /// </summary> #if KMS || EMS public UInt16?Encrypt(ref byte[] data, bool toClient = false) { return(SendCipher.Encrypt(ref data, toClient)); }
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);