Lines Matching defs:adler
6 Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
24 Jean-loup Gailly Mark Adler
106 uLong adler; /* Adler-32 or CRC-32 value of the uncompressed data */
235 allocation functions. total_in, total_out, adler, and msg are initialized.
343 deflate() sets strm->adler to the Adler-32 checksum of all input read
345 strm->adler will be the CRC-32 checksum of the input read so far. (See
388 them to use default allocation functions. total_in, total_out, adler, and
489 below), inflate sets strm->adler to the Adler-32 checksum of the dictionary
491 strm->adler to the Adler-32 checksum of all output produced so far (that is,
493 below. At the end of the stream, inflate() checks that its computed Adler-32
578 being written, strm->adler is a CRC-32 instead of an Adler-32.
643 Upon return of this function, strm->adler is set to the Adler-32 value
645 which dictionary has been used by the compressor. (The Adler-32 value
648 Adler-32 value is not computed and strm->adler is not set.
702 set unchanged. total_in, total_out, adler, and msg are initialized.
862 recommended that a check value such as an Adler-32 or a CRC-32 be applied to
870 return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
871 CRC-32 instead of an Adler-32. Unlike the gunzip utility and gzread() (see
897 can be determined from the Adler-32 value returned by that call of inflate.
908 expected one (incorrect Adler-32 value). inflateSetDictionary does not
968 total_in, total_out, adler, and msg are initialized.
1694 ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len);
1696 Update a running Adler-32 checksum with the bytes buf[0..len-1] and
1697 return the updated checksum. An Adler-32 value is in the range of a 32-bit
1701 An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed
1706 uLong adler = adler32(0L, Z_NULL, 0);
1709 adler = adler32(adler, buffer, length);
1711 if (adler != original_adler) error();
1714 ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf,
1724 Combine two Adler-32 checksums into one. For two sequences of bytes, seq1
1725 and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for
1726 each, adler1 and adler2. adler32_combine() returns the Adler-32 checksum of