capellan2000 at gmail.com
Thu Dec 13 16:00:39 CST 2012
I forgot to wrote:
Decompress function (Deflate) in Livecode
does not care at all about the gzip's crc32,
but will truncate or append binary data to fit
the decompressed data length as stated in the
last four bytes of the gzip binary string...
This means that you could create an invalid
gzip string by appending a header, an invalid
crc32 string of 4 bytes, but the last four bytes
must have the exact length of the decompressed
data or this data will be truncated or inflated
with a lot of garbage at the end, just to "fill".
If you are creating yourself this deflated
binary string, then you could know the
decompressed data length in advance.
View this message in context: http://runtime-revolution.278305.n4.nabble.com/ZLib-DEFLATE-tp4658027p4658096.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode