Home | History | Annotate | Download | only in zlib

Lines Matching refs:checksum

101 	// The final five FCHECK bits form a mod-31 checksum.
122 // The next four bytes are the Adler-32 checksum of the dictionary.
123 checksum := adler32.Checksum(z.dict)
124 z.scratch[0] = uint8(checksum >> 24)
125 z.scratch[1] = uint8(checksum >> 16)
126 z.scratch[2] = uint8(checksum >> 8)
127 z.scratch[3] = uint8(checksum >> 0)
191 checksum := z.digest.Sum32()
193 z.scratch[0] = uint8(checksum >> 24)
194 z.scratch[1] = uint8(checksum >> 16)
195 z.scratch[2] = uint8(checksum >> 8)
196 z.scratch[3] = uint8(checksum >> 0)