mw99/DataCompression

NOT work for ZLIB in iOS 9.x

phasedarray opened this issue · 1 comments

I got zlib compressed data from network and invoke data.inflate() to decompress.
It works fine in iOS 11 simulator, but fails in iOS 9 simulator.
The function compression_stream_process in DataCompression.swift always return -1.
Neither zlib level-5 nor level-10 can be decompressed
Same data can be decompressed by SWCompression in iOS9, so I think it's a bug in this library.

XCode Version 9.1 (9B55)
iOS 9.x simulator

mw99 commented

Hi. Thanks for your feedback.

Can you try .unzip() just in case. If that doesn't do the trick can you provide some test data or just post the first ~12 bytes of your compressed stream here? (hex encoded)