Improve speed of gzprintf() in transparent mode.

This commit is contained in:
Mark Adler
2015-07-05 18:14:53 -07:00
parent 8a979f6c79
commit 95698093f0
4 changed files with 70 additions and 51 deletions

View File

@@ -170,7 +170,7 @@ typedef struct {
char *path; /* path or fd for error messages */
unsigned size; /* buffer size, zero if not allocated yet */
unsigned want; /* requested buffer size, default is GZBUFSIZE */
unsigned char *in; /* input buffer */
unsigned char *in; /* input buffer (double-sized when writing) */
unsigned char *out; /* output buffer (double-sized when reading) */
int direct; /* 0 if processing gzip, 1 if transparent */
/* just for reading */