zlib: expose amount of data read for compression/decompression
Added bytesRead property to Zlib engines and an option to expose the engine to convenience method callbacks (so that the bytesRead value can be used in the convenience methods, per related issue).
Fixes: https://github.com/nodejs/node/issues/8874
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
- zlib
I can try to add documentation later, once I know the API does not need any changes.