def crc_file_update(alg, register, check_bytes):
    # If the input data is a string, convert to bytes.
    if isinstance(check_bytes, str):
        check_bytes = bytearray(check_bytes, 'utf_8')

    for octet in check_bytes:
        if alg.reflect_in:
            octet = alg.reflect(octet, 8)
        for j in range(8):
            bit = register & alg.msb_mask
            register <<= 1
            if octet & (0x80 >> j):
                bit ^= alg.msb_mask
            if bit:
                register ^= alg.poly
        register &= alg.mask
    return register


# function check_file
###############################################################################
Hierarchical tree of words classified by semantic type.
dataset/ETHPy150Open tpircher/pycrc/pycrc.py/crc_file_update--crossover with--dataset/ETHPy150Open clips/pattern/pattern/text/search.py/Taxonomy.__init__