(a, b)
return byte(i) + b[i:]
Compresses bytestring b as a byte representing the prefix it shares with a,
    followed by the suffix bytes.
Compresses bytestring b as a byte representing the prefix it shares with a,
    followed by the suffix bytes.
Compresses bytestring b as a byte representing the prefix it shares with a followed by the suffix bytes .
def prefix_encode(a, b):
    """
    Compresses bytestring b as a byte representing the prefix it shares with a,
    followed by the suffix bytes.
    """

    i = first_diff(a, b)
    return byte(i) + b[i:]
def prefix_encode ( a , b ) : i = first_diff ( a , b ) return byte ( i ) + b [ i : ]