<!-- Thank you for reporting an issue. Please fill in as much of the template below as you're able. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> - **Version**: v6.7.0 (applies to previous versions as well) - **Platform**:Darwin [hostname] 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64 - **Subsystem**: zlib <!-- Enter your issue details below this comment. --> `zlib.inflateRawSync` returns the decompressed data. AFAICT it does not indicate how many bytes were read from the input buffer. Is there a way to find that? Use case: some ZIP writers use the "data descriptor" feature of the pkzip file format. The CRC-32 checksum of the uncompressed data and the lengths actually appear directly after the deflated data, so you need to know the number of bytes that the deflator read in order to jump ahead to those fields. FWIW zip libraries leveraging zlib, like [yauzl](https://github.com/thejoshwolfe/yauzl), do not bother with the checksum.