
     i#                         d  Z d ZdS )c                 ~    d}g }| D ]5}|dk    r|}d}d}|                     |gt          |          z             6|S )z|A function to run length decode an int array.
    :param in_array: the input array of integers
    :return the decoded arrayFT)extendint)in_arrayswitch	out_arrayitem	this_items        g/srv/www/vhosts/g4struct/public_html/venv/lib/python3.11/site-packages/mmtf/codecs/decoders/decoders.pyrun_length_decoder      sa     FI 4 45==IFFFi[T23333    c                     t          |           dk    rg S | d         }|g}t          dt          |                     D ]"}|| |         z  }|                    |           #|S )zxA function to delta decode an int array.

    :param in_array: the input array of integers
    :return the decoded array       )lenrangeappend)r   this_ansr   is       r
   delta_decoder      st    
 8}}	{H
I1c(mm$$ # #HQK""""r   N)r   r    r   r
   <module>r      s-         r   