summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2013-02-23 20:12:20 -0800
committerMark Adler <madler@alumni.caltech.edu>2013-02-23 20:12:20 -0800
commit931aa25aea560e8a9f5d425bdd2a44a1f2eff00d (patch)
treed7382c8431c7e4c7d9533db701cee038f8b5457c
parent51370f365607fe14a6a7a1a27b3bd29d788f5e5b (diff)
downloadzlib-931aa25aea560e8a9f5d425bdd2a44a1f2eff00d.tar.gz
zlib-931aa25aea560e8a9f5d425bdd2a44a1f2eff00d.tar.bz2
zlib-931aa25aea560e8a9f5d425bdd2a44a1f2eff00d.zip
Update inflateBack() comments, since inflate() can be faster.
-rw-r--r--zlib.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/zlib.h b/zlib.h
index 55e3c2c..ee38237 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1031,11 +1031,12 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
1031 out_func out, void FAR *out_desc)); 1031 out_func out, void FAR *out_desc));
1032/* 1032/*
1033 inflateBack() does a raw inflate with a single call using a call-back 1033 inflateBack() does a raw inflate with a single call using a call-back
1034 interface for input and output. This is more efficient than inflate() for 1034 interface for input and output. This is potentially more efficient than
1035 file i/o applications in that it avoids copying between the output and the 1035 inflate() for file i/o applications, in that it avoids copying between the
1036 sliding window by simply making the window itself the output buffer. This 1036 output and the sliding window by simply making the window itself the output
1037 function trusts the application to not change the output buffer passed by 1037 buffer. inflate() can be faster on modern CPUs when used with large
1038 the output function, at least until inflateBack() returns. 1038 buffers. inflateBack() trusts the application to not change the output
1039 buffer passed by the output function, at least until inflateBack() returns.
1039 1040
1040 inflateBackInit() must be called first to allocate the internal state 1041 inflateBackInit() must be called first to allocate the internal state
1041 and to initialize the state with the user-provided window buffer. 1042 and to initialize the state with the user-provided window buffer.