⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
View File Name :
eventstream.cpython-310.pyc
o .&ßa)P ã @ s d Z ddlmZ ddlmZ ddlmZ dZdZdZ G dd „ d e ƒZG d d„ deƒZG dd „ d eƒZ G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZd#dd„ZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d d!„ d!eƒZd"S )$zBinary Event Stream Decoding é )Úcrc32)Úunpack)ÚEventStreamErroré i i c @ s e Zd ZdZdS )ÚParserErrorz.Base binary flow encoding parsing exception. N)Ú__name__Ú __module__Ú__qualname__Ú__doc__© r r ú6/usr/lib/python3/dist-packages/botocore/eventstream.pyr s r c ó e Zd ZdZ‡ fdd„Z‡ ZS )ÚDuplicateHeaderz%Duplicate header found in the event. c s d| }t t| ƒ |¡ d S )NzDuplicate header present: "%s")Úsuperr Ú__init__)ÚselfÚheaderÚmessage©Ú __class__r r r s zDuplicateHeader.__init__©r r r r r Ú __classcell__r r r r r ó r c r )ÚInvalidHeadersLengthz+Headers length is longer than the maximum. c ó d|t f }tt| ƒ |¡ d S )Nz.Header length of %s exceeded the maximum of %s)Ú_MAX_HEADERS_LENGTHr r r ©r Úlengthr r r r r ' ó ÿzInvalidHeadersLength.__init__r r r r r r % r r c r )ÚInvalidPayloadLengthz+Payload length is longer than the maximum. c r )Nz/Payload length of %s exceeded the maximum of %s)Ú_MAX_PAYLOAD_LENGTHr r r r r r r r 0 r zInvalidPayloadLength.__init__r r r r r r . r r c r )ÚChecksumMismatchz9Calculated checksum did not match the expected checksum. c s d||f }t t| ƒ |¡ d S )Nz5Checksum mismatch: expected 0x%08x, calculated 0x%08x)r r! r )r ÚexpectedÚ calculatedr r r r r 9 r zChecksumMismatch.__init__r r r r r r! 7 r r! c r )ÚNoInitialResponseErrorzÊAn event of type initial-response was not received. This exception is raised when the event stream produced no events or the first event in the stream was not of the initial-response type. c s d}t t| ƒ |¡ d S )Nz0First event was not of the initial-response type)r r$ r )r r r r r r F s zNoInitialResponseError.__init__r r r r r r$ @ s r$ c @ sÐ e Zd ZdZdZdZdZdZdZdZ dZ d Zeeed œZe dd„ ƒZe d d„ ƒZe dd„ ƒZe dd„ ƒZe dd„ ƒZe dd„ ƒZe dd„ ƒZe dd„ ƒZe d%dd„ƒZe d%dd„ƒZe d d!„ ƒZe d"d#„ ƒZd$S )&ÚDecodeUtilszàUnpacking utility functions used in the decoder. All methods on this class take raw bytes and return a tuple containing the value parsed from the bytes and the number of bytes consumed to parse that value. z!Bz!Hz!Iz!bz!hz!iz!qz!III)é é é c C ó dS )a This method consumes none of the provided bytes and returns True. :type data: bytes :param data: The bytes to parse from. This is ignored in this method. :rtype: tuple :rtype: (bool, int) :returns: The tuple (True, 0) )Tr r ©Údatar r r Úunpack_truec ó zDecodeUtils.unpack_truec C r) )a This method consumes none of the provided bytes and returns False. :type data: bytes :param data: The bytes to parse from. This is ignored in this method. :rtype: tuple :rtype: (bool, int) :returns: The tuple (False, 0) )Fr r r* r r r Úunpack_falsep r- zDecodeUtils.unpack_falsec C ó t tj| dd… ƒd }|dfS )zíParse an unsigned 8-bit integer from the bytes. :type data: bytes :param data: The bytes to parse from. :rtype: (int, int) :returns: A tuple containing the (parsed integer value, bytes consumed) Nr&