I need to use inflateBack() function from zlib.h to uncompress gz file into a buffer.
zlib.h is in C but I want to utilize c++ to use inflateBack function. I need a simple example how to use it in C++. I have seen examples but the code is too unreadable.
I cannot use any other libraries. I used Boost to do this task but in my company gz files are created by rsyslog and for some reason the headers of files are broken and non of these libraries parses the entire file. It only parses the first few block apparently.