Exemplo n.º 1
0
        public static byte[] CtorErrMsg(int error, string msg, NameValueCollection requestParam)
        {
            int msgId    = Convert.ToInt32(requestParam["msgid"]);
            int actionid = Convert.ToInt32(requestParam["actionid"]);
            var ms       = new MessageStructure();
            var head     = new MessageHead(msgId, actionid, "st", error, enableErrorMsg ? msg : "");

            ms.WriteBuffer(head);
            return(ms.PosGzipBuffer());
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public byte[] ReadByte()
 {
     return(_buffers.PosGzipBuffer());
 }