aboutsummaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/zlib.h b/zlib.h
index 14d87a2..d33db13 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1724,7 +1724,7 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1724 negative, the result has no meaning or utility. 1724 negative, the result has no meaning or utility.
1725*/ 1725*/
1726 1726
1727ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); 1727ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1728/* 1728/*
1729 Update a running CRC-32 with the bytes buf[0..len-1] and return the 1729 Update a running CRC-32 with the bytes buf[0..len-1] and return the
1730 updated CRC-32. If buf is Z_NULL, this function returns the required 1730 updated CRC-32. If buf is Z_NULL, this function returns the required
@@ -1758,19 +1758,17 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1758*/ 1758*/
1759 1759
1760/* 1760/*
1761ZEXTERN void ZEXPORT crc32_combine_gen OF((z_crc_t op[32], z_off_t len2)); 1761ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t len2));
1762 1762
1763 Generate the operator op corresponding to length len2, to be used with 1763 Return the operator corresponding to length len2, to be used with
1764 crc32_combine_op(). op must have room for 32 z_crc_t values. (32 is the 1764 crc32_combine_op().
1765 number of bits in the CRC.)
1766*/ 1765*/
1767 1766
1768ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, 1767ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
1769 const z_crc_t *op));
1770/* 1768/*
1771 Give the same result as crc32_combine(), using op in place of len2. op is 1769 Give the same result as crc32_combine(), using op in place of len2. op is
1772 is generated from len2 by crc32_combine_gen(). This will be faster than 1770 is generated from len2 by crc32_combine_gen(). This will be faster than
1773 crc32_combine() if the generated op is used many times. 1771 crc32_combine() if the generated op is used more than once.
1774*/ 1772*/
1775 1773
1776 1774
@@ -1860,7 +1858,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1860 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); 1858 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1861 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); 1859 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1862 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); 1860 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1863 ZEXTERN void ZEXPORT crc32_combine_gen64 OF((z_crc_t *op, z_off64_t)); 1861 ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t));
1864#endif 1862#endif
1865 1863
1866#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) 1864#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
@@ -1888,7 +1886,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1888 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); 1886 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1889 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); 1887 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1890 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); 1888 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1891 ZEXTERN void ZEXPORT crc32_combine_gen64 OF((z_crc_t *op, z_off_t)); 1889 ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t));
1892# endif 1890# endif
1893#else 1891#else
1894 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); 1892 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
@@ -1897,14 +1895,14 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
1897 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile)); 1895 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1898 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); 1896 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1899 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); 1897 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1900 ZEXTERN void ZEXPORT crc32_combine_gen OF((z_crc_t *op, z_off_t)); 1898 ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
1901#endif 1899#endif
1902 1900
1903#else /* Z_SOLO */ 1901#else /* Z_SOLO */
1904 1902
1905 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); 1903 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1906 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); 1904 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1907 ZEXTERN void ZEXPORT crc32_combine_gen OF((z_crc_t *op, z_off_t)); 1905 ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
1908 1906
1909#endif /* !Z_SOLO */ 1907#endif /* !Z_SOLO */
1910 1908