Thanks for a tip, but it's still does not work. My test gzip file have 10 (minimum gzip header) header bytes and 8 trailing bytes, so I tried: auto _uncompressed = uncompress(_compressed[0x0A.._compressed.length - 0x08]);
But the exception still occurs. Maybe the compressed data need to be aligned in some boundary or something. Please for help.
