diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2013-02-23 20:12:20 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2013-02-23 20:12:20 -0800 |
commit | 931aa25aea560e8a9f5d425bdd2a44a1f2eff00d (patch) | |
tree | d7382c8431c7e4c7d9533db701cee038f8b5457c /zlib.h | |
parent | 51370f365607fe14a6a7a1a27b3bd29d788f5e5b (diff) | |
download | zlib-931aa25aea560e8a9f5d425bdd2a44a1f2eff00d.tar.gz |
Update inflateBack() comments, since inflate() can be faster.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1031,11 +1031,12 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm, out_func out, void FAR *out_desc)); /* inflateBack() does a raw inflate with a single call using a call-back - interface for input and output. This is more efficient than inflate() for - file i/o applications in that it avoids copying between the output and the - sliding window by simply making the window itself the output buffer. This - function trusts the application to not change the output buffer passed by - the output function, at least until inflateBack() returns. + interface for input and output. This is potentially more efficient than + inflate() for file i/o applications, in that it avoids copying between the + output and the sliding window by simply making the window itself the output + buffer. inflate() can be faster on modern CPUs when used with large + buffers. inflateBack() trusts the application to not change the output + buffer passed by the output function, at least until inflateBack() returns. inflateBackInit() must be called first to allocate the internal state and to initialize the state with the user-provided window buffer. |