Home | History | Annotate | Download | only in python2.7

Lines Matching refs:crc

159         self.crc = zlib.crc32("") & 0xffffffffL
184 self.crc = zlib.crc32("") & 0xffffffffL
218 self.fileobj.read(2) # Read & discard the 16-bit header CRC
235 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
323 # Check the CRC and file size, and set the flag so we read
329 self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
338 # to reread the 8 bytes containing the CRC and the file size.
339 # We check the that the computed CRC and size of the
345 if crc32 != self.crc:
346 raise IOError("CRC check failed %s != %s" % (hex(crc32),
347 hex(self.crc)))
369 write32u(self.fileobj, self.crc)