HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //lib/python3.9/site-packages/google/protobuf/internal/__pycache__/wire_format.cpython-39.opt-1.pyc
a

x��g� �@s�dZdZddlZddlmZddlmZdZde>dZdZdZ	dZ
dZd	Zd
Z
d
Zed�Zed�Zd
ZdZdZdZdZdZdZdZe�e�d	kr�ed��e�e�dkr�ed��dd�Zdd�Zdd�Zdd�Zd d!�Z d"d#�Z!d$d%�Z"d&d'�Z#d(d)�Z$d*d+�Z%d,d-�Z&d.d/�Z'd0d1�Z(d2d3�Z)d4d5�Z*d6d7�Z+d8d9�Z,d:d;�Z-d<d=�Z.d>d?�Z/d@dA�Z0dBdC�Z1dDdE�Z2dFdG�Z3dHdI�Z4dJdK�Z5ej6j7ej6j8ej6j9ej6j:fZ;dLdM�Z<dS)NzFConstants and static functions to support protocol buffer wire format.z#robinson@google.com (Will Robinson)�N)�
descriptor)�message�����i���i�l�������l���������z<Iz<Qz<fz<dz"Format "I" is not a 32-bit number.�z"Format "Q" is not a 64-bit number.cCs0d|krtks$nt�d|��|t>|BS)aReturns an unsigned 32-bit integer that encodes the field number and
  wire type information in standard protocol message wire format.

  Args:
    field_number: Expected to be an integer in the range [1, 1 << 29)
    wire_type: One of the WIRETYPE_* constants.
  rzUnknown wire type: %d)�
_WIRETYPE_MAXr�EncodeError�
TAG_TYPE_BITS)�field_numberZ	wire_type�r�H/usr/lib/python3.9/site-packages/google/protobuf/internal/wire_format.py�PackTagPsrcCs|t?|t@fS)zkThe inverse of PackTag().  Given an unsigned 32-bit number,
  returns a (field_number, wire_type) tuple.
  )r�
TAG_TYPE_MASK)�tagrrr�	UnpackTag]srcCs|dkr|d>S|d>dAS)z�ZigZag Transform:  Encodes signed integers so that they can be
  effectively used with varint encoding.  See wire_format.h for
  more details.
  rr���r��valuerrr�ZigZagEncodedsrcCs|d@s|d?S|d?dAS)zInverse of ZigZagEncode().rrrrrrr�ZigZagDecodensrcCs
t||�S�N)�
Int64ByteSize�r�int32rrr�
Int32ByteSizezsrcCstd|@�S�Nr
)�_VarUInt64ByteSizeNoTag)rrrr�Int32ByteSizeNoTag~sr"cCst|d|@�Sr ��UInt64ByteSize�rZint64rrrr�srcCs
t||�Srr#)rZuint32rrr�UInt32ByteSize�sr&cCst|�t|�Sr)�TagByteSizer!)r�uint64rrrr$�sr$cCst|t|��Sr)r&rrrrr�SInt32ByteSize�sr)cCst|t|��Sr)r$rr%rrr�SInt64ByteSize�sr*cCst|�dS�Nr�r')rZfixed32rrr�Fixed32ByteSize�sr-cCst|�dS�Nrr,)rZfixed64rrr�Fixed64ByteSize�sr/cCst|�dSr+r,)rZsfixed32rrr�SFixed32ByteSize�sr0cCst|�dSr.r,)rZsfixed64rrr�SFixed64ByteSize�sr1cCst|�dSr+r,)rZfltrrr�
FloatByteSize�sr2cCst|�dSr.r,)rZdoublerrr�DoubleByteSize�sr3cCst|�dS)Nrr,�r�brrr�BoolByteSize�sr6cCs
t||�Sr)r&)r�enumrrr�EnumByteSize�sr8cCst||�d��S)Nzutf-8)�
BytesByteSize�encode)r�stringrrr�StringByteSize�sr<cCst|�tt|��t|�Sr)r'r!�lenr4rrrr9�s

��r9cCsdt|�|��S)Nr)r'�ByteSize�rrrrr�
GroupByteSize�s
�r@cCst|�t|���|��Sr�r'r!r>r?rrr�MessageByteSize�s

��rBcCsHdtd�td�td�}|t|�7}|��}|t|�7}||7}|S)NrrrrA)r�msgZ
total_sizeZmessage_sizerrr�MessageSetItemByteSize�srDcCstt|d��S)zEReturns the bytes required to serialize a tag with this field number.r)r!r)rrrrr'�sr'cCs�|dkrdS|dkrdS|dkr$dS|dkr0dS|d	kr<d
S|dkrHdS|d
krTdS|dkr`dS|dkrldS|tkr�t�d|��dS)z�Returns the number of bytes required to serialize a single varint
  using boundary value comparisons. (unrolled loop optimization -WPierce)
  uint64 must be unsigned.
  �ri�?ri��ri���rl��rl����l����l����rr	�	zValue out of range: %d�
)�
UINT64_MAXrr
)r(rrrr!�sr!cCs|tvS)z�Return true iff packable = true is valid for fields of this type.

  Args:
    field_type: a FieldDescriptor::Type value.

  Returns:
    True iff fields of this type are packable.
  )�NON_PACKABLE_TYPES)Z
field_typerrr�IsTypePackables	rL)=�__doc__�
__author__�structZgoogle.protobufrrrrZWIRETYPE_VARINTZWIRETYPE_FIXED64ZWIRETYPE_LENGTH_DELIMITEDZWIRETYPE_START_GROUPZWIRETYPE_END_GROUPZWIRETYPE_FIXED32r�intZ	INT32_MAXZ	INT32_MINZ
UINT32_MAXZ	INT64_MAXZ	INT64_MINrJZFORMAT_UINT32_LITTLE_ENDIANZFORMAT_UINT64_LITTLE_ENDIANZFORMAT_FLOAT_LITTLE_ENDIANZFORMAT_DOUBLE_LITTLE_ENDIAN�calcsize�AssertionErrorrrrrrr"rr&r$r)r*r-r/r0r1r2r3r6r8r<r9r@rBrDr'r!ZFieldDescriptorZTYPE_STRINGZ
TYPE_GROUPZTYPE_MESSAGEZ
TYPE_BYTESrKrLrrrr�<module>sv

�