Exemplo n.º 1
0
 /// <summary>
 /// transform everything to binary
 /// </summary>
 /// <param name="key">encrypt key</param>
 /// <param name="_Lock">encrypt type</param>
 /// <returns>binary</returns>
 public byte[] AllToByte(string key, EncryptAndCompress.LockType _Lock = EncryptAndCompress.LockType.None)
 {
     object[] datas = new object[] { Code, Parameters, ReturnCode, DebugMessage };
     return(EncryptAndCompress.Lock(new ChuonBinary(datas).ToArray(), key, _Lock));
 }
Exemplo n.º 2
0
 public void WriteSendDataByte(byte[] response, string key, EncryptAndCompress.LockType _Lock)
 {
     byte[] bs = EncryptAndCompress.Lock(response, key, _Lock);
     writer.Write(bs);
 }