Пример #1
0
        public new byte[] SerializeJson()
        {
            var ori = base.SerializeJson();
            var zip = DataCompress.Zip(ori);

            return(zip);
        }
Пример #2
0
 public void DeserializeBin(byte[] oriData, bool depress)
 {
     if (depress)
     {
         var unZip = DataCompress.UnzipBin(oriData);
         base.DeserializeBin(unZip);
     }
     else
     {
         base.DeserializeBin(oriData);
     }
 }
Пример #3
0
 public new void DeserializeBin(byte[] oriData)
 {
     if (needToCompress)
     {
         var unZip = DataCompress.UnzipBin(oriData);
         base.DeserializeBin(unZip);
     }
     else
     {
         base.DeserializeBin(oriData);
     }
 }
Пример #4
0
        public byte[] SerializeBin(bool compress)
        {
            var ori = base.SerializeBin();

            if (compress)
            {
                var zip = DataCompress.ZipBin(ori);
                return(zip);
            }
            else
            {
                return(ori);
            }
        }
Пример #5
0
        public new byte[] SerializeBin()
        {
            var ori = base.SerializeBin();

            if (needToCompress)
            {
                var zip = DataCompress.ZipBin(ori);
                return(zip);
            }
            else
            {
                return(ori);
            }
        }
Пример #6
0
        public void DeserializeJson(byte[] zipData)
        {
            var unZip = DataCompress.Unzip(zipData);

            base.DeserializeJson(unZip);
        }