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="obj"></param> /// <returns></returns> public static string CompressObject2Hex(object obj) { return(ConverService.Bytes2Hex(CompressObjectToBytes(obj))); }