def crc32(space, data, oldcrc=0): "Compute the CRC-32 incrementally." crc = rzipfile.crc32(data, r_uint(oldcrc)) return space.wrap(crc)
def crc32(space, data, oldcrc=0): "Compute the CRC-32 incrementally." crc = rzipfile.crc32(data, r_uint(oldcrc)) crc = rffi.cast(rffi.INT, crc) # unsigned => 32-bit signed return space.newint(intmask(crc))
def crc32(space, data, oldcrc=0): "Compute the CRC-32 incrementally." crc = rzipfile.crc32(data, r_uint(oldcrc)) crc = rffi.cast(rffi.INT, crc) # unsigned => 32-bit signed return space.wrap(intmask(crc))