def xor_decode(data, axis=-1, out=None):
    """Decode XOR delta.

    >>> xor_decode(b'0\\x01\\x03\\x01\\x07\\x01\\x03\\x01\\x0f\\x01')
    b'0123456789'

    """
    if isinstance(data, (bytes, bytearray)):
        prev = data[0]
        b = [chr(prev)]
        for c in data[1:]:
            prev = c ^ prev
            b.append(chr(prev))
        return ''.join(b).encode('latin1')
    raise NotImplementedError()
