From aaf94f387d78b03b6cb2a735ca32ce3c44fedea4 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 24 Feb 2025 20:17:45 -0800 Subject: Note that gzseek() requests are deferred until the next operation. --- zlib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, If the file is opened for reading, this function is emulated but can be extremely slow. If the file is opened for writing, only forward seeks are supported; gzseek then compresses a sequence of zeroes up to the new - starting position. + starting position. For reading or writing, any actual seeking is deferred + until the next read or write operation, or close operation when writing. gzseek returns the resulting offset location as measured in bytes from the beginning of the uncompressed stream, or -1 in case of error, in -- cgit v1.2.3-55-g6feb