+
    üÐjŠ	  ã                   óÈ   € R t ^ RIHt ^ RIHtHtHtHt ^ RIH	t	H
t
 ^ RIHtHtHtHt ]! R4      t ! R R]4      t ! R R	]4      t]
 ! R
 R4      4       tR R ltR R ltR# )z
Buffer byte streams.
)Úcount)ÚDictÚIteratorÚListÚTypeVar)ÚFactoryÚdefine)ÚAMPÚCommandÚIntegerÚStringÚTc                   ó.   € ] tR t^tRtR]! 4       3.tRtR# )Ú
StreamOpenz
Open a new stream.
ó   streamId© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚresponseÚ__static_attributes__r   ó    Ú</usr/lib/python3/dist-packages/twisted/trial/_dist/stream.pyr   r      s   † ñð ™g›iÐ(Ð)„Hr   r   c                   ó>   € ] tR t^tRtR]! 4       3R]! 4       3.tRtR# )ÚStreamWritez$
Write a chunk of data to a stream.
r   s   datar   N)	r   r   r   r   r   r   ÚBytesÚ	argumentsr   r   r   r   r   r      s$   † ñð
 
‘g“iÐ Ø	‘%“'Ðð„Ir   r   c                   ó„   a € ] tR t^"t o Rt]! 4       t]! ]4      t	V 3R lR lt
V 3R lR ltV 3R lR ltV 3R ltR	tV tR
# )ÚStreamReceiverz1
Buffering de-multiplexing byte stream receiver.
c                ó    <€ V ^8„  d   QhRS[ /# )é   Úreturn)Úint)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚStreamReceiver.__annotate__+   s   ø€ ÷ ñ ‘cñ r   c                óN   € \        V P                  4      p. V P                  V&   V# )z5
Open a new stream and return its unique identifier.
)ÚnextÚ_counterÚ_streams)ÚselfÚnewIds   & r   ÚopenÚStreamReceiver.open+   s%   € ô �T—]‘]Ó#ˆØ!ˆ�‰�eÑØˆr   c                ó*   <€ V ^8„  d   QhRS[ RS[RR/# )r"   ÚstreamIdÚchunkr#   N)r$   Úbytes)r%   r&   s   "€r   r'   r(   3   s"   ø€ ÷ .ñ .™cð .©%ð .°Dñ .r   c                óJ   € V P                   V,          P                  V4       R# )zi
Write to an open stream using its unique identifier.

@raise KeyError: If there is no such open stream.
N)r,   Úappend)r-   r2   r3   s   &&&r   ÚwriteÚStreamReceiver.write3   s   € ð 	�‰�hÕ×&Ñ& uÖ-r   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# )r"   r2   r#   )r$   r   r4   )r%   r&   s   "€r   r'   r(   ;   s   ø€ ÷ +ñ +™sð +¡t©E¥{ñ +r   c                ó8   € V P                   P                  V4      # )z�
Indicate an open stream may receive no further data and return all of
its current contents.

@raise KeyError: If there is no such open stream.
)r,   Úpop)r-   r2   s   &&r   ÚfinishÚStreamReceiver.finish;   s   € ð �}‰}× Ñ  Ó*Ð*r   c                óh   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[S[S[S[,          3,          ;R&   # )r"   r+   r,   )r   r$   r   r   r4   )r%   r&   s   "€r   r'   r(   "   s1   ø‡ ‚ ñ ‘s�mÑ%ñ ñ ‘3™™U�Ð#Õ$Ñ4ò r   r   N)r   r   r   r   r   r   r+   r   Údictr,   r/   r7   r<   Ú__annotate_func__r   Ú__classdictcell__)r&   s   @r   r    r    "   sA   ø‡ € ññ $›g€HÙ'.¨t£}€H÷ð ÷.ð .÷+ð +÷3 ƒ r   r    c                óR   € V ^8„  d   QhR\         R\        R\        \         ,          /# )r"   ÚdataÚ	chunkSizer#   )r4   r$   r   )r%   s   "r   r'   r'   E   s%   € ÷ ñ ”ð ¤#ð ¬(´5­/ñ r   c              #  ó^   "  € ^ pV\        V 4      8  d   WW!,            x € W!,          pK&  R# 5i)zù
Break a byte string into pieces of no more than ``chunkSize`` length.

@param data: The byte string.

@param chunkSize: The maximum length of the resulting pieces.  All pieces
    except possibly the last will be this length.

@return: The pieces.
N)Úlen)rC   rD   Úposs   && r   r3   r3   E   s1   é € ð €CØ
”�D“	Œ/Ø˜�Ð)Ò)ØÕŠñ ùs   ‚+-c                óR   € V ^8„  d   QhR\         R\        \        ,          R\        /# )r"   ÚampÚchunksr#   )r	   r   r4   r$   )r%   s   "r   r'   r'   V   s%   € ÷ ñ ”cð ¤8¬E¥?ð ´sñ r   c              ƒ  óÞ   "  € V P                  \        4      G Rj  x€L
 R,          p\        V\        4      '       g   Q hV F"  pV P                  \        W#R7      G Rj  x€L
  K$  	  V#  LM L5i)zâ
Send the given stream chunks, one by one, over the given connection.

The chunks are sent using L{StreamWrite} over a stream opened using
L{StreamOpen}.

@return: The identifier of the stream over which the chunks were sent.
Nr2   )r2   rC   )Ú
callRemoter   Ú
isinstancer$   r   )rI   rJ   r2   ÚoneChunks   &&  r   ÚstreamrO   V   s`   é € ð —n‘n¤ZÓ0×0°*Õ=€HÜ�h¤×$Ò$Ð$Ð$ãˆØ�n‰nœ[°8ˆnÓK×KÒKñ à€Oñ 1ñ 	Lùs"   ‚A-›A)œAA-ÁA+ÁA-Á+A-N)r   Ú	itertoolsr   Útypingr   r   r   r   Úattrsr   r   Útwisted.protocols.ampr	   r
   r   r   r   r   r   r   r    r3   rO   r   r   r   Ú<module>rT      sc   ðñõ ß 0Ó 0ç !ç HÓ HáˆCƒL€ô*�ô *ô�'ô ð ÷+ð +ó ð+õD÷"r   