aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2025-02-24 20:17:45 -0800
committerMark Adler <madler@alumni.caltech.edu>2025-05-13 18:00:03 -0700
commitaaf94f387d78b03b6cb2a735ca32ce3c44fedea4 (patch)
tree4b7649c550a54379d290c02d433f2774928ef029
parentaeab3f6cc7d57ff96c82c01578bf75b09cbb5dc2 (diff)
downloadzlib-aaf94f387d78b03b6cb2a735ca32ce3c44fedea4.tar.gz
zlib-aaf94f387d78b03b6cb2a735ca32ce3c44fedea4.tar.bz2
zlib-aaf94f387d78b03b6cb2a735ca32ce3c44fedea4.zip
Note that gzseek() requests are deferred until the next operation.
-rw-r--r--zlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zlib.h b/zlib.h
index e734b66..c055ecb 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1578,7 +1578,8 @@ ZEXTERN z_off_t ZEXPORT gzseek(gzFile file,
1578 If the file is opened for reading, this function is emulated but can be 1578 If the file is opened for reading, this function is emulated but can be
1579 extremely slow. If the file is opened for writing, only forward seeks are 1579 extremely slow. If the file is opened for writing, only forward seeks are
1580 supported; gzseek then compresses a sequence of zeroes up to the new 1580 supported; gzseek then compresses a sequence of zeroes up to the new
1581 starting position. 1581 starting position. For reading or writing, any actual seeking is deferred
1582 until the next read or write operation, or close operation when writing.
1582 1583
1583 gzseek returns the resulting offset location as measured in bytes from 1584 gzseek returns the resulting offset location as measured in bytes from
1584 the beginning of the uncompressed stream, or -1 in case of error, in 1585 the beginning of the uncompressed stream, or -1 in case of error, in