Relative Content

Tag Archive for zlib

zlib inflate() partly hangs while uncompressing buffer

I use zlib 1.3.1 on MicroChip/XC32. It’s imported through included Harmony and it translates perfect. My goal is to receive data via a serial connection through various ways. This already works with uncompressed data. To save time i want to compress the data and i made tests with an amount of 4k, 8k and now 16k blocks of uncompressed binary data. I transfer the data within a loop and inflate() it on the microcontroller.