403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/usr/lib/python3/dist-packages/mercurial/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/lib/python3/dist-packages/mercurial/utils/__pycache__/cborutil.cpython-313.pyc
�

6�h\�����SSKJr SSKrSSKr\R(aSSKJrJr SrSrSr	Sr
SrSrS	r
S
rSrSrS
rSrSrSrSrSrSr\R0"S\	S-\-5r\R0"S\S-\-5r\R0"S\S-\-5r\R8"S5r\R8"S5r\R8"S5r\R8"S5r \R8"S5r!Sr"Sr#S7Sjr$S8Sjr%S9Sjr&S:S;Sjjr'S<Sjr(S=Sjr)S=S jr*S!r+S=S"jr,S>S#jr-S?S$jr.S@S%jr/SAS&jr0\1\%\2\(\3\)\4\)\5\-\6\,\7\/\8"S5\00r9S=S'jr:"S(S)\;5r<SBS*jr=\R8"S5r>\R8"S+5r?\R8"S,5r@\R8"S-5rASrBSrCSrDSrESrFSrGSCSDS.jjrHSESFS/jjrI"S0S1\15rJ"S2S35rK"S4S55rLS6rMg)G�)�annotationsN)�Iterable�Iterator��������������iz>Bz>BBz>BHz>BLz>BQ���c�H�US:aUS-U-5$US:a[RUS-S-U5$US:a[RUS-S-U5$US:a[RUS-S-U5$[
RUS-S-U5$)	z6Obtain a value encoding the major type and its length.�r
��rlrr)�ENCODED_LENGTH_1�pack�ENCODED_LENGTH_2�ENCODED_LENGTH_3�ENCODED_LENGTH_4�ENCODED_LENGTH_5)�	majortype�lengths  �:/usr/lib/python3/dist-packages/mercurial/utils/cborutil.py�encodelengthr#Is���
��{��$�$�Y�!�^�f�%<�=�=�	�#���$�$�Y�!�^�b�%8�&�A�A�	�%���$�$�Y�!�^�b�%8�&�A�A�	�*�	��$�$�Y�!�^�b�%8�&�A�A��$�$�Y�!�^�b�%8�&�A�A�c#�J# �[[[U55v� Uv� g7f�N)r#�MAJOR_TYPE_BYTESTRING�len��vs r"�streamencodebytestringr+Ws���
�,�c�!�f�
5�5�
�G�s�!#c#�|# �[v� UH"n[[[U55v� Uv� M$ [v� g7f)z�Convert an iterator of chunks to an indefinite bytestring.

Given an input that is iterable and each element in the iterator is
representable as bytes, emit an indefinite length bytestring.
N)�BEGIN_INDEFINITE_BYTESTRINGr#r'r(�BREAK)�it�chunks  r"�streamencodebytestringfromiterr1\s5���&�%����0�#�e�*�=�=�����K�s�:<c#�# �[v� Sn[U5nXX!-nU[U5-
n[[[U55v� Uv� X#:�aOM;[v� g7f)z�Given a large source buffer, emit as an indefinite length bytestring.

This is a generator of chunks constituting the encoded CBOR data.
rN)r-r(r#r'r.)�source�	chunksize�i�lr0s     r"� streamencodeindefinitebytestringr7ksb���&�%�	�A��F��A�
��1�=�)��	�S��Z����0�#�e�*�=�=����6����K�s�AAc#�# �US:�dUS:a[S5eUS:�a[[U5v� g[[[	U5S-
5v� g7f)Nll����zbig integers not supportedrr)�
ValueErrorr#�MAJOR_TYPE_UINT�MAJOR_TYPE_NEGINT�absr)s r"�streamencodeintr=�sL���� � �A�(=�$=��5�6�6��A�v��?�A�.�.��,�c�!�f�q�j�9�9�s�AAc#�~# �[[[U55v� UHn[U5Shv�N M gN	7f)z)Encode a known size iterable to an array.N)r#�MAJOR_TYPE_ARRAYr(�streamencode)r6r5s  r"�streamencodearrayrA�s3����'��Q��
0�0�
����?�"�"��"�s�/=�;�
=c#�h# �[v� UHn[U5Shv�N M [v� gN7f)z:Encode an iterator of items to an indefinite length array.N)�BEGIN_INDEFINITE_ARRAYr@r.)r/r5s  r"�streamencodearrayfromiterrD�s0���!� �
����?�"�"���K�	#�s�2�0�2c�0�[U5RU4$r&)�type�__name__r)s r"�_mixedtypesortkeyrH�s����7���Q��r$c#�z# �[[[5v� [[	U[
S95Shv�N gN7f)N��key)r#�MAJOR_TYPE_SEMANTIC�SEMANTIC_TAG_FINITE_SETrA�sortedrH)�ss r"�streamencodesetrP�s,����*�,C�
D�D� ���/@�!A�B�B�B�s�1;�9�;c#��# �[[[U55v� [UR	5SS9H+up[U5Shv�N [U5Shv�N M- gNN7f)zWEncode dictionary to a generator.

Does not supporting indefinite length dictionaries.
c��[US5$�Nr)rH)�xs r"�<lambda>�!streamencodemap.<locals>.<lambda>�s��6G��!��6Mr$rJN)r#�MAJOR_TYPE_MAPr(rN�itemsr@)�drK�values   r"�streamencodemapr[�sU���
�~�s�1�v�
.�.��Q�W�W�Y�,M�N�
����$�$�$���&�&�&�O�$�&�s$�AA+�
A'�A+�A)�
A+�)A+c#�# �[v� UH+up[U5Shv�N [U5Shv�N M- [v� gN$N7f)zFGiven an iterable of (key, value), encode to an indefinite length map.N)�BEGIN_INDEFINITE_MAPr@r.)r/rKrZs   r"�streamencodemapfromiterr^�sB���
���
����$�$�$���&�&�&���K�	%�&�s�A	�A�A	�A�A	�A	c#�&# �U(aSOSv� g7f)N����)�bs r"�streamencodeboolrd�s����'�G�#�s�c#�# �Sv� g7f)N��rbr)s r"�streamencodenonerg�s
���
�M�s�c���[RUR5nU(d([Hn[X5(dM[Un O U(d[	S[U5-5eU"U5$)aEncode a value in a streaming manner.

Given an input object, encode it to CBOR recursively.

Returns a generator of CBOR encoded bytes. There is no guarantee
that each emitted chunk fully decodes to a value or sub-value.

Encoding is deterministic - unordered collections are sorted.
zdo not know how to encode %s)�STREAM_ENCODERS�get�	__class__�
isinstancer9rF)r*�fn�tys   r"r@r@�sc��
�	�	�Q�[�[�	)�B�
�!�B��a�$�$�� ��$�B��	"���7�$�q�'�A�B�B�
�a�5�Lr$c��\rSrSrSrSrg)�CBORDecodeError�z"Represents an error decoding CBOR.rbN)rG�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__rbr$r"rprp�s��,r$rpc�
�X$r&rb)rcr5s  r"�_elementtointegerrx�s	���4�Kr$s>Hs>Ls>Qc�L�[X5nUS-
nUS-	nU[-nU[:Xa,[X@U5upVnU(aSXgS-[4$SSU[4$U[
:Xa6[X@U5upVnU(aUceSU*S-
US-[4$SSU[4$U[:Xay[X@USS9upXnU(d
SSU[4$UbMX-U-[U5::aXU-X-U-nSXgU-S-[4$[U5U-
U-
U-
n	SSU	[4$SSS[4$U[:Xa[S5eU[:Xa,[X@U5upXnU(aSX�S-[4$SSU[4$U[:Xa,[X@U5upXnU(aSX�S-[4$SSU[4$U[:Xa�[X@U5upZnU(d
SSU[4$U
[ :XaaX-[U5:�a
SSS[4$[#XU-5upXp�U(d
SSU[4$U[:wa[S	5eSX�U-S-[$4$[S
U
-5eU[&:Xa^U[(:Xa
SSS[4$U[*:Xa
SSS[4$U[,:Xa
SSS[4$U[.:Xa
SSS[04$[SU-5ee)aCDecode a new CBOR value from a buffer at offset.

This function attempts to decode up to one complete CBOR value
from ``b`` starting at offset ``offset``.

The beginning of a collection (such as an array, map, set, or
indefinite length bytestring) counts as a single value. For these
special cases, a state flag will indicate that a special value was seen.

When called, the function either returns a decoded value or gives
a hint as to how many more bytes are needed to do so. By calling
the function repeatedly given a stream of bytes, the caller can
build up the original values.

Returns a tuple with the following elements:

* Bool indicating whether a complete value was decoded.
* A decoded value if first value is True otherwise None
* Integer number of bytes. If positive, the number of bytes
  read. If negative, the number of bytes we need to read to
  decode this value or the next chunk in this value.
* One of the ``SPECIAL_*`` constants indicating special treatment
  for this value. ``SPECIAL_NONE`` means this is a fully decoded
  simple value (such as an integer or bool).
rr
TFN)�allowindefinitezstring major type not supported���z,expected array after finite set semantic tagzsemantic tag %d not allowedzspecial type %d not allowed)rx�SUBTYPE_MASKr:�
decodeuint�SPECIAL_NONEr;r'r(�#SPECIAL_START_INDEFINITE_BYTESTRING�MAJOR_TYPE_STRINGrpr?�SPECIAL_START_ARRAYrW�SPECIAL_START_MAPrLrM�
decodeitem�SPECIAL_START_SET�MAJOR_TYPE_SPECIAL�
SUBTYPE_FALSE�SUBTYPE_TRUE�SUBTYPE_NULL�SUBTYPE_INDEFINITE�SPECIAL_INDEFINITE_BREAK)
rc�offset�initialr �subtype�completerZ�	readcount�size�wanted�tagvalue�
readcount2�specials
             r"r�r�
sI��6 ��*�G�
�a�K�F��1��I���$�G��O�#�%/��F�%C�"������A�
�|�;�;��$�	�<�7�7�	�'�	'�%/��F�%C�"�����$�$�$��%��!��Y��]�L�@�@��$�	�<�7�7�	�+�	+�%/����%
�!��	���$�	�<�7�7����!�D�(�C��F�2��9�,�v�/A�D�/H�I���U��$4�q�$8�,�F�F��Q��&��9�4�t�;���d�F�L�8�8���q�"E�E�E�	�'�	'��?�@�@�	�&�	&�%/�w�6�$B�!��	����1�}�.A�A�A��$�	�<�7�7�	�n�	$�%/�w�6�$B�!��	����1�}�.?�?�?��$�	�<�7�7�	�)�	)�(2�7�v�(F�%��I���$�	�<�7�7��.�.��!�S��V�+��d�B��4�4�2<��I�%�3�/�H�J���d�J��<�<��-�-�%�B�����:�5��9�;L�L�L�"�"?�(�"J�K�K�	�(�	(��m�#����<�/�/�
��
$���q�,�.�.�
��
$���q�,�.�.�
�*�
*���q�":�:�:�"�"?�'�"I�J�J��ur$c��US:aSUS4$US:XaU(ag[S5eUS:�a[SU-5eUS:Xa[nO2US	:Xa[nO%US
:Xa[nOUS:Xa[nO[S5e[U5U-
UR:�a!SURX5SUR4$S
S[U5U-
UR-
4$)a�Decode an unsigned integer.

``subtype`` is the lower 5 bits from the initial byte CBOR item
"header." ``b`` is a buffer containing bytes. ``offset`` points to
the index of the first byte after the byte that ``subtype`` was
derived from.

``allowindefinite`` allows the special indefinite length value
indicator.

Returns a 3-tuple of (successful, value, count).

The first element is a bool indicating if decoding completed. The 2nd
is the decoded integer value or None if not fully decoded or the subtype
is 31 and ``allowindefinite`` is True. The 3rd value is the count of bytes.
If positive, it is the number of additional bytes decoded. If negative,
it is the number of additional bytes needed to decode this value.
rTrr
)TNrz'indefinite length uint not allowed here�z'unsupported subtype on integer type: %drrrz#bounds condition checking violationFN)rp�STRUCT_BIG_UBYTE�STRUCT_BIG_USHORT�STRUCT_BIG_ULONG�STRUCT_BIG_ULONGLONGr(r��unpack_from)r�rcr�rzrOs     r"r}r}�s���.��|��W�a���	�B��� �!�"K�L�L�	�B���5��?�
�	
��"�}���	�B����	�B����	�B�� ���C�D�D�
�1�v���!�&�&� ��Q�]�]�1�-�a�0�!�&�&�8�8��d�C��F�V�O�a�f�f�4�4�4r$c�<�\rSrSr%SrS\S'S\S'S	S
SjjrSrg)�bytestringchunki�z�Represents a chunk/segment in an indefinite length bytestring.

This behaves like a ``bytes`` but in addition has the ``isfirst``
and ``islast`` attributes indicating whether this chunk is the first
or last in an indefinite length bytestring.
�bool�isfirst�islastc�H�[RX5nX$lX4lU$r&)�bytes�__new__r�r�)�clsr*�first�last�selfs     r"r��bytestringchunk.__new__�s���}�}�S�$�������r$)r�r�N)FF)r�r�r�r�)rGrrrsrtru�__annotations__r�rvrbr$r"r�r��s����M��L��r$r�c�f�\rSrSrSrSrSrSrSrSr	Sr
S	rSS
jr\
SSj5rSSSjjrS
rSrg)�
sansiodecoderi�aA CBOR decoder that doesn't perform its own I/O.

To use, construct an instance and feed it segments containing
CBOR-encoded bytes via ``decode()``. The return value from ``decode()``
indicates whether a fully-decoded value is available, how many bytes
were consumed, and offers a hint as to how many bytes should be fed
in next time to decode the next value.

The decoder assumes it will decode N discrete CBOR values, not just
a single value. i.e. if the bytestream contains uints packed one after
the other, the decoder will decode them all, rather than just the initial
one.

When ``decode()`` indicates a value is available, call ``getavailable()``
to return all fully decoded values.

``decode()`` can partially decode input. It is up to the caller to keep
track of what data was consumed and to pass unconsumed data in on the
next invocation.

The decoder decodes atomically at the *item* level. See ``decodeitem()``.
If an *item* cannot be fully decoded, the decoder won't record it as
partially consumed. Instead, the caller will be instructed to pass in
the initial bytes of this item on the next invocation. This does result
in some redundant parsing. But the overhead should be minimal.

This decoder only supports a subset of CBOR as required by Mercurial.
It lacks support for:

* Indefinite length arrays
* Indefinite length maps
* Use of indefinite length bytestrings as keys or values within
  arrays, maps, or sets.
* Nested arrays, maps, or sets within sets
* Any semantic tag that isn't a mathematical finite set
* Floating point numbers
* Undefined special value

CBOR types are decoded to Python types as follows:

uint -> int
negint -> int
bytestring -> bytes
map -> dict
array -> list
True -> bool
False -> bool
null -> None
indefinite length bytestring chunk -> [bytestringchunk]

The only non-obvious mapping here is an indefinite length bytestring
to the ``bytestringchunk`` type. This is to facilitate streaming
indefinite length bytestrings out of the decoder and to differentiate
a regular bytestring from an indefinite length bytestring.
rrrrr	r
rc�^�SUlURUl/UlSUl/UlgrS)�decodedbytecount�_STATE_NONE�_state�_collectionstack�_currentmapkey�_decodedvalues�r�s r"�__init__�sansiodecoder.__init__.s7��
!"����&�&���!#���#���!��r$c�4�URUR:g$)z2Whether the decoder has partially decoded a value.)r�r�r�s r"�
inprogress�sansiodecoder.inprogressAs���{�{�d�.�.�.�.r$c���U(d[UR5SS4$UnU[U5:Ga�[X5upEpgUS:�aU=RU-
slU(d#US:de[UR5X#-
U*4$X&-
nUR
UR:XGaU[:XaURRU5 GOU[:Xa1URRU/S.5 URUlGO�U[:Xa1URRU0S.5 URUlGO�U[:Xa9URRU[5S.5 UR UlGOKU[":XaUR$UlGO.['SU-5eUR
UR:XGa�U[:Xa2URSnUSRU5 US==S-ss'GO�U[:XaRURSn	/n
U	SRU
5 U	S==S-ss'URRUU
S.5 GOmU[:XabURSn	0n
U	SRU
5 U	S==S-ss'URRXZS.5 URUlGOU[:XakURSn	[5n
U	SRU
5 U	S==S-ss'URRUU
S.5 UR UlGO�U[":Xa['S5e['S	U-5eUR
UR:XafU[:XaXPlUR*UlGO,U[":Xa['S
5eU[[[4;a['S5e['SU-5eUR
UR*:XGa�U[:Xa@URSn	XYSUR('U	S==S-ss'URUlGOfU[:Xa_URSn	/n
X�SUR('U	S==S-ss'URRUU
S.5 URUlO�U[:Xa_URSn	0n
X�SUR('U	S==S-ss'URRUU
S.5 URUlO�U[:XagURSn	[5n
X�SUR('U	S==S-ss'URRUU
S.5 UR UlO#U[":Xa['S
5e['SU-5eSUlGOUR
UR :XaU[:Xa2URSn	U	SR-U5 U	S==S-ss'GO�U[":Xa['S5eU[[[4;a['S5e['SU-5eUR
UR$:Xa�U[:Xa6URR[/USS95 UR0UlGO"U[2:XaIURR[/SSSS95 UR(aeURUlO�['SU-5eUR
UR0:Xa�U[:Xa%URR[/U55 OxU[2:XaHURR[/SSS95 UR(aeURUlO&['SU-5e['SUR
-5eUR
URURUR 4;aO�URSn	U	S(aO�URR55 UR(aT[6UR[8UR[UR 0[;URSS5UlO/URRU	S5 URUlM�U[U5:aGM�[UR5X#-
S4$)aMAttempt to decode bytes from an input buffer.

``b`` is a collection of bytes and ``offset`` is the byte
offset within that buffer from which to begin reading data.

``b`` must support ``len()`` and accessing bytes slices via
``__slice__``. Typically ``bytes`` instances are used.

Returns a tuple with the following fields:

* Bool indicating whether values are available for retrieval.
* Integer indicating the number of bytes that were fully consumed,
  starting from ``offset``.
* Integer indicating the number of bytes that are desired for the
  next call in order to decode an item.
r)�	remaining�vzunhandled special state: %dr{r�r�rz9indefinite length bytestrings not allowed as array valuesz5unhandled special item when expecting array value: %dz5indefinite length bytestrings not allowed as map keysz%collections not supported as map keysz1unhandled special item when expecting map key: %dz7indefinite length bytestrings not allowed as map valuesz3unhandled special item when expecting map value: %dNz7indefinite length bytestrings not allowed as set valuesz%collections not allowed as set valuesz3unhandled special item when expecting set value: %dT)r�r$)r�r�z<unexpected special value when expecting bytestring chunk: %d)r�zunhandled decoder state: %d)r�r�r(r�r�r�r�r~�appendr�r��_STATE_WANT_ARRAY_VALUEr��_STATE_WANT_MAP_KEYr��set�_STATE_WANT_SET_VALUEr�"_STATE_WANT_BYTESTRING_CHUNK_FIRSTrpr��_STATE_WANT_MAP_VALUE�addr��'_STATE_WANT_BYTESTRING_CHUNK_SUBSEQUENTr��pop�list�dictrF)r�rcr��
initialoffsetr�rZr�r��c�lastc�newvalues           r"�decode�sansiodecoder.decodeFs���"���+�+�,�a��2�2��
��s�1�v�o�3=�Q�2G�/�H�Y��1�}��%�%��2�%�� �1�}�$�}���,�,�-��*��J���
��F��{�{�d�.�.�.��l�*��'�'�.�.�u�5�� 3�3��)�)�0�0�*/�"$���#'�">�">�D�K�� 1�1��)�)�0�0�*/�"$���#'�":�":�D�K�� 1�1��)�)�0�0�*/�"%�%���#'�"<�"<�D�K�� C�C�"&�"I�"I�D�K�*�5��?���
���� <� <�<��l�*��-�-�b�1�A��d�G�N�N�5�)��l�O�q�(�O�
� 3�3� �1�1�"�5�E�!�H��$�K�&�&�x�0��,�'�1�,�'��)�)�0�0�*/�"*���� 1�1� �1�1�"�5�E�!�H��$�K�&�&�x�0��,�'�1�,�'��)�)�0�0�',�=��#'�":�":�D�K�� 1�1� �1�1�"�5�E�"�u�H��$�K�&�&�x�0��,�'�1�,�'��)�)�0�0�*/�"*���#'�"<�"<�D�K�� C�C�)�6���*�4�6=�>������� 8� 8�8��l�*�*/�'�"&�"<�"<�D�K�� C�C�)�2���
�'�%�%�!��
*�?���*�0�29�:������� :� :�:��l�*� �1�1�"�5�E�7<�$�K�� 3� 3�4��,�'�1�,�'�"&�":�":�D�K�� 3�3� �1�1�"�5�E�!�H�7?�$�K�� 3� 3�4��,�'�1�,�'��)�)�0�0�*/�"*���#'�">�">�D�K�� 1�1� �1�1�"�5�E�!�H�7?�$�K�� 3� 3�4��,�'�1�,�'��)�)�0�0�*/�"*���#'�":�":�D�K�� 1�1� �1�1�"�5�E�"�u�H�7?�$�K�� 3� 3�4��,�'�1�,�'��)�)�0�0�*/�"*���#'�"<�"<�D�K�� C�C�)�0���*�2�4;�<���
'+��#����� :� :�:��l�*� �1�1�"�5�E��$�K�O�O�E�*��,�'�1�,�'�� C�C�)�0���
�'�%�%�!��
*�?���*�2�4;�<������� G� G�G��l�*��'�'�.�.�'��T�:��#'�"N�"N�D�K�� 8�8��'�'�.�.�'��4�d�C�� $�4�4�4�4�"&�"2�"2�D�K�*�9�;B�C������� L� L�L��l�*��'�'�.�.��u�/E�F�� 8�8��'�'�.�.��s��/N�O� $�4�4�4�4�"&�"2�"2�D�K�*�9�;B�C���&�1�D�K�K�?�����;�;��0�0��,�,��.�.�'��
��-�-�b�1����&��
�%�%�)�)�+��(�(��d�:�:��d�6�6��T�7�7�#��4�0�0��4�T�:�;�	#=�D�K��'�'�.�.�u�T�{�;�"&�"2�"2�D�K�E�G
�s�1�v�o�P
��$�$�%��"�
�
�	
r$c�>�[UR5n/UlU$)zuReturns an iterator over fully decoded values.

Once values are retrieved, they won't be available on the next call.
)r�r�)r�r6s  r"�getavailable�sansiodecoder.getavailable�s!��
��$�$�%�� ����r$)r�r�r�r�r�N��return�None)r�r��r)r��intr��tuple[bool, int, int])rGrrrsrtrur�r�r�r�r�r�r�r��propertyr�r�r�rvrbr$r"r�r��sX��6�p�K���������)*�&�./�+�!�&�/��/�G
�Rr$r�c�R�\rSrSr%SrS\S'S\S'S\S'SS	jrSS
jrSrSr	g
)�bufferingdecoderi�aPA CBOR decoder that buffers undecoded input.

This is a glorified wrapper around ``sansiodecoder`` that adds a buffering
layer. All input that isn't consumed by ``sansiodecoder`` will be buffered
and concatenated with any new input that arrives later.

TODO consider adding limits as to the maximum amount of data that can
be buffered.
r��_decoderr��_chunksr��_wantedc�>�[5Ul/UlSUlgrS)r�r�r�r�r�s r"r��bufferingdecoder.__init__�s��%���
������r$c��[U[5(a[U5nUR(a�[	U5UR
:aHURR
U5 U=R
[	U5-slSSUR
4$[	U5nURR
U5 SRUR5n/Ul[	U5U-
nOSnURRU5upEnX`lU[	U5:aURR
XS5 XEU-
U4$)aAttempt to decode bytes to CBOR values.

Returns a tuple with the following fields:

* Bool indicating whether new values are available for retrieval.
* Integer number of bytes decoded from the new input.
* Integer number of bytes wanted to decode the next value.
Frr$N)
rl�	bytearrayr�r�r(r�r��joinr�r�)r�rc�newlen�oldlen�	availabler�r�s       r"r��bufferingdecoder.decode�s���a��#�#��a��A��<�<��1�v����$����#�#�A�&�����A��&���a����-�-���V�F��L�L����"�������&�A��D�L���V�f�_�F��F�'+�}�}�';�';�A�'>�$�	�f����s�1�v���L�L����*�
�.��f�,�f�4�4r$c�6�URR5$r&)r�r�r�s r"r��bufferingdecoder.getavailable!s���}�}�)�)�+�+r$)r�r�r�Nr�)r�r�)
rGrrrsrtrur�r�r�r�rvrbr$r"r�r��s)�����
�M�
�L��
15�f,r$r�c���U(d/$[5nURU5up#nU[U5:wa[S5eUR(a[S5eUR5$)a^Decode all CBOR items present in an iterable of bytes.

In addition to regular decode errors, raises CBORDecodeError if the
entirety of the passed buffer does not fully decode to complete CBOR
values. This includes failure to decode any value, incomplete collection
types, incomplete indefinite length items, and extra data at the end of
the buffer.
zinput data not fully consumedzinput data not complete)r�r�r(rpr�r�)rc�decoder�
havevaluesr��	wantbytess     r"�	decodeallr�%sb��
��	��o�G�'.�~�~�a�'8�$�J�9��C��F���=�>�>�����7�8�8����!�!r$)r r�r!r�r�r�)r*r�r��Iterator[bytes])r/zIterable[bytes]r�r�)r)r4r�r�r�)r*r�r�r�)r�r�)rYr�r�r�)r/rr�r�)rcr�r�r�)r*r�r�r�)r5r�r�r�r�)r�r�)rF)r�r�rcr�r�r�rzr�)N�
__future__r�struct�typing�
TYPE_CHECKINGrrr:r;r'r�r?rWrLr�r|r�r�r��SUBTYPE_HALF_FLOAT�SUBTYPE_SINGLE_FLOAT�SUBTYPE_DOUBLE_FLOATr�rMrr-rCr]�Structrrrrrr.�	BREAK_INTr#r+r1r7r=rArDrHrPr[r^rdrgr�r�r��tupler�r�r�rFrir@�	Exceptionrprxr�r�r�r�r~rr�r�r�r�r�r}r�r�r�r�rbr$r"�<module>r�s���#�
�
�	���� �������������������
���������������%�k�k��
�1�
$�'9�
9��� ����
�a�
�"4�
4����{�{��.�A�
� 2�
2����=�=��&���=�=��'���=�=��'���=�=��'���=�=��'��	���	�B��
� #������2:�#���C�	'��$�
�
�!����
�	���/����
���J� �	���4-�i�-���=�=��&���M�M�%�(���=�=��'���}�}�U�+����&'�#���������X�xFK�25�
�25��25�$'�25�>B�25�j�e��&j�j�ZH,�H,�V"r$

Youez - 2016 - github.com/yon3zu
LinuXploit