aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-02-02 22:53:54 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-02-04 18:51:31 -0800
commitabd3d1a28930f89375d4b41408b39f6c1be157b2 (patch)
tree3c9bce52b7836d6c6701a69e73d005ad78d6412d
parent037bca67fdf3a81996aea3662521c676f653dfc6 (diff)
downloadzlib-abd3d1a28930f89375d4b41408b39f6c1be157b2.tar.gz
zlib-abd3d1a28930f89375d4b41408b39f6c1be157b2.tar.bz2
zlib-abd3d1a28930f89375d4b41408b39f6c1be157b2.zip
Update zran version.
-rw-r--r--examples/zran.c8
-rw-r--r--examples/zran.h4
2 files changed, 8 insertions, 4 deletions
diff --git a/examples/zran.c b/examples/zran.c
index 8f4023f..2afc2fe 100644
--- a/examples/zran.c
+++ b/examples/zran.c
@@ -1,7 +1,7 @@
1/* zran.c -- example of deflate stream indexing and random access 1/* zran.c -- example of deflate stream indexing and random access
2 * Copyright (C) 2005, 2012, 2018, 2023 Mark Adler 2 * Copyright (C) 2005, 2012, 2018, 2023, 2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 * Version 1.4 13 Apr 2023 Mark Adler */ 4 * Version 1.5 4 Feb 2024 Mark Adler */
5 5
6/* Version History: 6/* Version History:
7 1.0 29 May 2005 First version 7 1.0 29 May 2005 First version
@@ -14,6 +14,10 @@
14 Do a binary search over the index for an access point 14 Do a binary search over the index for an access point
15 Expose the access point type to enable save and load 15 Expose the access point type to enable save and load
16 1.4 13 Apr 2023 Add a NOPRIME define to not use inflatePrime() 16 1.4 13 Apr 2023 Add a NOPRIME define to not use inflatePrime()
17 1.5 4 Feb 2024 Set returned index to NULL on an index build error
18 Stop decoding once request is satisfied
19 Provide a reusable inflate engine in the index
20 Allocate the dictionaries to reduce memory usage
17 */ 21 */
18 22
19// Illustrate the use of Z_BLOCK, inflatePrime(), and inflateSetDictionary() 23// Illustrate the use of Z_BLOCK, inflatePrime(), and inflateSetDictionary()
diff --git a/examples/zran.h b/examples/zran.h
index de0646b..5c6e643 100644
--- a/examples/zran.h
+++ b/examples/zran.h
@@ -1,7 +1,7 @@
1/* zran.h -- example of deflated stream indexing and random access 1/* zran.h -- example of deflated stream indexing and random access
2 * Copyright (C) 2005, 2012, 2018, 2023 Mark Adler 2 * Copyright (C) 2005, 2012, 2018, 2023, 2024 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 * Version 1.3 18 Feb 2023 Mark Adler */ 4 * Version 1.5 4 Feb 2024 Mark Adler */
5 5
6#include <stdio.h> 6#include <stdio.h>
7#include "zlib.h" 7#include "zlib.h"