#1 2021-06-22 20:51:08

tbo
Member
Registered: 2015-04-20
Posts: 339

Equivalent functions Un/CompressString()

I am converting an application from mORMot1 to mORMot2. I use from mORMot1 the functions SynZip.UnCompressString() and SynZip.CompressString(). What are the equivalent functions in mORMot2?

With best regards
Thomas

Offline

#2 2021-06-23 07:21:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,350
Website

Re: Equivalent functions Un/CompressString()

Those functions were deprecated because TAlgoCompress should rather be used.
I wondered if anyone still used them. wink

I have added them back in non PUREMORMOT2 mode.

Offline

#3 2021-06-23 12:15:53

tbo
Member
Registered: 2015-04-20
Posts: 339

Re: Equivalent functions Un/CompressString()

ab wrote:

I wondered if anyone still used them. wink

Thank you for the implementation. Would it be possible to use it in PUREMORMOT2 mode as well and mark it as "deprecated" here?

My first download from mORMot that I found on my computer was SynopseSQLite3.zip from 2009-12-20 (Christmas present). The unit SQLite3Commons.pas was 455,114 bytes in size. For many years I used the Synopse libraries like the Jcl Units. Over time, more and more parts of it. As last this year 2021, Interface based services. It could well be that there is more old source code lying around. Also recommendations for mORMot, which I made in another Forum, are affected. It could well draw further circles. wink

With best regards
Thomas

Offline

Board footer

Powered by FluxBB