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