예제 #1
0
        public static object MemoryDecompress(byte[] bytes)
        {
            AcedInflator instance = new AcedInflator();

            byte[] objs = instance.Decompress(bytes, 0, 0, 0);
            return(SerializerService.Deserialize(objs));
        }
예제 #2
0
 /// <summary>
 /// 内存方式解压缩
 /// </summary>
 /// <param name="bytesToDecompress"></param>
 /// <returns></returns>
 public static byte[] MemDeCopress(byte[] bytesToDecompress)
 {
     byte[] buffer2;
     try
     {
         buffer2 = new AcedInflator().Decompress(bytesToDecompress, 0, 0, 0);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(buffer2);
 }