def writePair(name, value):
    """
        Opposite of readPair
        """
    l = len(name)
    if l < 128:
        st = chr(l)
    else:
        st = chr(128 | l >> 24 & 255) + chr(l >> 16 & 255) + chr(l >> 8 & 255
            ) + chr(l & 255)
    l = len(value)
    if l < 128:
        st = st + chr(l)
    else:
        st = st + chr(128 | l >> 24 & 255) + chr(l >> 16 & 255) + chr(l >> 
            8 & 255) + chr(l & 255)
    return st + name + value
