HEX
Server: LiteSpeed
System: Linux server334.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: richfield (1256)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/google/protobuf/internal/__pycache__/wire_format.cpython-36.opt-1.pyc
3

���h� �@s�dZdZddlZddlmZddlmZdZde>dZdZdZ	dZ
dZd	Zd
Z
d
ZedM�ZedO�ZdQZdSZdUZdWZdZdZdZdZeje�d	kr�ed��eje�dkr�ed��dd�Zdd�Zdd�Zdd�Zdd�Z d 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?�Z0d@dA�Z1dBdC�Z2dDdE�Z3dFdG�Z4dHdI�Z5ej6j7ej6j8ej6j9ej6j:fZ;dJdK�Z<dS)XzFConstants and static functions to support protocol buffer wire format.z#robinson@google.com (Will Robinson)�N)�
descriptor)�message������� �?�@z<Iz<Qz<fz<dz"Format "I" is not a 32-bit number.�z"Format "Q" is not a 64-bit number.cCs2d|kotkns&tjd|��|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�!/usr/lib/python3.6/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().rrrr)rrrr�ZigZagDecodensrcCs
t||�S)N)�
Int64ByteSize)r�int32rrr�
Int32ByteSizezsrcCstd|@�S)Nl����)�_VarUInt64ByteSizeNoTag)rrrr�Int32ByteSizeNoTag~sr cCst|d|@�S)Nl����)�UInt64ByteSize)r�int64rrrr�srcCs
t||�S)N)r!)rZuint32rrr�UInt32ByteSize�sr#cCst|�t|�S)N)�TagByteSizer)r�uint64rrrr!�sr!cCst|t|��S)N)r#r)rrrrr�SInt32ByteSize�sr&cCst|t|��S)N)r!r)rr"rrr�SInt64ByteSize�sr'cCst|�dS)Nr)r$)rZfixed32rrr�Fixed32ByteSize�sr(cCst|�dS)Nr
)r$)rZfixed64rrr�Fixed64ByteSize�sr)cCst|�dS)Nr)r$)rZsfixed32rrr�SFixed32ByteSize�sr*cCst|�dS)Nr
)r$)rZsfixed64rrr�SFixed64ByteSize�sr+cCst|�dS)Nr)r$)rZfltrrr�
FloatByteSize�sr,cCst|�dS)Nr
)r$)rZdoublerrr�DoubleByteSize�sr-cCst|�dS)Nr)r$)r�brrr�BoolByteSize�sr/cCs
t||�S)N)r#)r�enumrrr�EnumByteSize�sr1cCst||jd��S)Nzutf-8)�
BytesByteSize�encode)r�stringrrr�StringByteSize�sr5cCst|�tt|��t|�S)N)r$r�len)rr.rrrr2�sr2cCsdt|�|j�S)Nr)r$�ByteSize)rrrrr�
GroupByteSize�s
r8cCst|�t|j��|j�S)N)r$rr7)rrrrr�MessageByteSize�sr9cCsHdtd�td�td�}|t|�7}|j�}|t|�7}||7}|S)Nrrr)r$rr7)r�msgZ
total_sizeZmessage_sizerrr�MessageSetItemByteSize�sr;cCstt|d��S)zEReturns the bytes required to serialize a tag with this field number.r)rr)rrrrr$�sr$cCs�|dkrdS|dkrdS|dkr$dS|dkr0dS|d	kr<d
S|dkrHdS|d
krTdS|dkr`dS|dkrldS|tkr�tjd|��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����r
l�����	zValue out of range: %d�
)�
UINT64_MAXrr)r%rrrr�s*rcCs|tkS)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	rCli���li�ll��ll����ll����ll����)=�__doc__�
__author__�structZgoogle.protobufrrrrZWIRETYPE_VARINTZWIRETYPE_FIXED64ZWIRETYPE_LENGTH_DELIMITEDZWIRETYPE_START_GROUPZWIRETYPE_END_GROUPZWIRETYPE_FIXED32r�intZ	INT32_MAXZ	INT32_MINZ
UINT32_MAXZ	INT64_MAXZ	INT64_MINrAZFORMAT_UINT32_LITTLE_ENDIANZFORMAT_UINT64_LITTLE_ENDIANZFORMAT_FLOAT_LITTLE_ENDIANZFORMAT_DOUBLE_LITTLE_ENDIAN�calcsize�AssertionErrorrrrrrr rr#r!r&r'r(r)r*r+r,r-r/r1r5r2r8r9r;r$rZFieldDescriptorZTYPE_STRINGZ
TYPE_GROUPZTYPE_MESSAGEZ
TYPE_BYTESrBrCrrrr�<module>st