Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » lzma compression does not seem to work
lzma compression does not seem to work [message #53358] Mon, 30 March 2020 20:17 Go to previous message
aftershock is currently offline  aftershock
Messages: 143
Registered: May 2008
Experienced Member
#include <Core/Core.h>

using namespace Upp;
#include "plugin/lzma/lzma.h"
CONSOLE_APP_MAIN
{
StringStream ss("something");
StringStream so;
ss.SetLoading();
ss.Seek(0);
/* GZCompress ( so, ss, ss.GetSize(), [](int64 a, int64 b) {
return false;
} );*/
LZMACompress(so,ss,6);
so.SetLoading();
so.Seek(0);
StringStream s2;
// LZMADecompress(s2,so);
// GZDecompress(s2,so);
LZMADecompress(s2,so);
if (ss.GetResult()!=s2.GetResult())
{
int b =3;
}
}

This will execute b= 3, not if you change lines for gz....it does not happen.
This seems to happen when compression level is explicitly given.

[Updated on: Mon, 30 March 2020 20:25]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: cannot use oracle from dll
Next Topic: Core/SSL Having issue with Lets encrypt certificate
Goto Forum:
  


Current Time: Fri Apr 19 23:31:10 CEST 2024

Total time taken to generate the page: 0.04075 seconds