You are not logged in.
Pages: 1
It's slightly disappoint that data compressed with FileSynLZ/StreamSynLZ cannot be decompressed with SynLZDecompress.
I use FileSynLZ to compress files. Then compressed files compiled into application resources.
But ResourceSynLZToRawByteString cannot load them.
Is this expected behavior?
Offline
This is as expected: those are two diverse formats.
SynLZCompress/SynLZDecompress work on memory blocks, so have a limited size.
Whereas FileSynLZ/FileUnSynLZ will define a more elaborated format, the file in SynLZCompress/SynLZDecompress 128MB chunks, and allowing a header signature as UInt32.
So FileSynLZ/FileUnSynLZ purpose is to handle any size of file.
ResourceSynLZToRawByteString is expected to work on small blocks, so uses raw SynLZCompress/SynLZDecompress format.
Offline
Thanks for clarification.
Offline
Pages: 1