Beispiel #1
0
def crc32(space, data, oldcrc=0):
    "Compute the CRC-32 incrementally."
    crc = rzipfile.crc32(data, r_uint(oldcrc))
    return space.wrap(crc)
Beispiel #2
0
def crc32(space, data, oldcrc=0):
    "Compute the CRC-32 incrementally."
    crc = rzipfile.crc32(data, r_uint(oldcrc))
    return space.wrap(crc)
Beispiel #3
0
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))
Beispiel #4
0
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))