diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1291,10 +1291,9 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); | |||
1291 | default buffer size is 8192 bytes. This function must be called after | 1291 | default buffer size is 8192 bytes. This function must be called after |
1292 | gzopen() or gzdopen(), and before any other calls that read or write the | 1292 | gzopen() or gzdopen(), and before any other calls that read or write the |
1293 | file. The buffer memory allocation is always deferred to the first read or | 1293 | file. The buffer memory allocation is always deferred to the first read or |
1294 | write. Two buffers are allocated, either both of the specified size when | 1294 | write. Three times that size in buffer space is allocated. A larger buffer |
1295 | writing, or one of the specified size and the other twice that size when | 1295 | size of, for example, 64K or 128K bytes will noticeably increase the speed |
1296 | reading. A larger buffer size of, for example, 64K or 128K bytes will | 1296 | of decompression (reading). |
1297 | noticeably increase the speed of decompression (reading). | ||
1298 | 1297 | ||
1299 | The new buffer size also affects the maximum length for gzprintf(). | 1298 | The new buffer size also affects the maximum length for gzprintf(). |
1300 | 1299 | ||