Esempio n. 1
0
 public static object DecompressHex2Memory(string value)
 {
     if (string.IsNullOrEmpty(value))
     {
         return(null);
     }
     return(MemoryDecompress(ConverService.Hex2Bytes(value)));
 }
Esempio n. 2
0
 public static string CompressMemory2Hex(object obj, AcedCompressionLevel level)
 {
     if (null == obj)
     {
         return(string.Empty);
     }
     return(ConverService.Bytes2Hex(MemoryCompress(obj, level)));
 }
Esempio n. 3
0
 /// <summary>
 /// 将16进制字符串解压缩成对象
 /// </summary>
 /// <param name="hexString"></param>
 /// <returns></returns>
 public static object DecompressHex2Object(string hexString)
 {
     return(DecompressToObject(ConverService.Hex2Bytes(hexString)));
 }
Esempio n. 4
0
 /// <summary>
 /// 将对象压缩成16进制字符串
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public static string CompressObject2Hex(object obj)
 {
     return(ConverService.Bytes2Hex(CompressObjectToBytes(obj)));
 }