diff options
| -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, | |||
| 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. |
