ó
    Š“,j÷_  ã                   ó:  • S SK r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJrJ	r	  SS	KJ
r
  SS
KJrJrJr  \	" 5       r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rSr " S S\5      rg)é    Né   )Úcompat)Úencode)Únumber_types)Úpacker)Úmemoryview_type)ÚNumpyRequiredForThisFeatureÚimport_numpy)Ú
range_func)ÚSOffsetTFlagsÚUOffsetTFlagsÚVOffsetTFlagsc                   ó   • \ rS rSrSrSrg)ÚOffsetArithmeticErroré!   zœError caused by an Offset arithmetic error.

Probably caused by bad writing of fields. This is considered an unreachable
situation in normal circumstances.
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú¡C:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\flatbuffers/builder.pyr   r   !   s   † ñò r   r   c                   ó   • \ rS rSrSrSrg)ÚIsNotNestedErroré+   zQError caused by using a Builder to write Object data when not inside

an Object.
r   Nr   r   r   r   r   r   +   ó   † ñò
 r   r   c                   ó   • \ rS rSrSrSrg)ÚIsNestedErroré4   z[Error caused by using a Builder to begin an Object when an Object is

already being built.
r   Nr   r   r   r   r!   r!   4   r   r   r!   c                   ó   • \ rS rSrSrSrg)ÚStructIsNotInlineErroré=   zaError caused by using a Builder to write a Struct at a location that

is not the current Offset.
r   Nr   r   r   r   r$   r$   =   r   r   r$   c                   ó   • \ rS rSrSrSrg)ÚBuilderSizeErroréF   zQError caused by causing a Builder to exceed the hardcoded limit of 2

gigabytes.
r   Nr   r   r   r   r'   r'   F   r   r   r'   c                   ó   • \ rS rSrSrSrg)ÚBuilderNotFinishedErroréO   z=Error caused by not calling `Finish` before calling `Output`.r   Nr   r   r   r   r*   r*   O   s   † ÙEâr   r*   c                   ó   • \ rS rSrSrSrg)ÚEndVectorLengthMismatchedéU   z`The number of elements passed to EndVector does not match the number

specified in StartVector.
r   Nr   r   r   r   r-   r-   U   r   r   r-   é   c                   ó¦  • \ rS rSrSrSr SrSCS jrS rS r	S r
S	 rS
 rS rS rS rS rS rS rS rS rSDS jrSES jrSES jrS rS rS rS rS rS rSDS jrSDS jrSDS jr S  r!S! r"S" r#S# r$S$ r%S% r&S& r'S' r(S( r)S) r*S* r+S+ r,S, r-S- r.S. r/S/ r0S0 r1S1 r2S2 r3S3 r4S4 r5S5 r6S6 r7S7 r8S8 r9S9 r:S: r;S; r<S< r=S= r>S> r?S? r@S@ rASA rBSBrCg)FÚBuilderéc   ab  A Builder is used to construct one or more FlatBuffers.

Typically, Builder objects will be used from code generated by the `flatc`
compiler.

A Builder constructs byte buffers in a last-first manner for simplicity and
performance during reading.

Internally, a Builder is a state machine for creating FlatBuffer objects.

It holds the following internal state:
    - Bytes: an array of bytes.
    - current_vtable: a list of integers.
    - vtables: a hash of vtable entries.

Attributes:
  Bytes: The internal `bytearray` for the Builder.
  finished: A boolean determining if the Builder has been finalized.
)ÚBytesÚcurrent_vtableÚheadÚminalignÚ	objectEndÚvtablesÚnestedÚforceDefaultsÚfinishedÚvectorNumElemsÚsharedStringsl        c                 ó  • SUs=::  a  [         R                  ::  d  O  Sn[        U5      e[        U5      U l        SU l        [        R                  " U5      U l        SU l	        SU l
        0 U l        SU l        SU l        SU l        SU l        g)zWInitializes a Builder of size `initial_size`.

The internal buffer is grown as needed.
r   z;flatbuffers: Cannot create Builder larger than 2 gigabytes.Nr   F)r1   ÚMAX_BUFFER_SIZEr'   Ú	bytearrayr3   r4   r   Úpy_typer5   r6   r7   r8   r9   r:   r=   r;   )ÚselfÚinitialSizeÚmsgs      r   Ú__init__ÚBuilder.__init__�   s€   € ð �Õ7¤× 7Ñ 7Õ7ØI€cÜ˜SÓ!Ð!ä˜;Ó'€D„Jà€DÔÜ×%Ò% kÓ2€D„IØ€D„MØ€D„NØ€D„LØ€D„KØ€DÔØ€DÔà€D…Mr   c                 ó¶   • S U l         [        U R                  5      U l        SU l        S U l        0 U l        SU l        SU l        S U l	        S U l
        SU l        g )Nr   F)r4   Úlenr3   r5   r6   r7   r8   r9   r:   r=   r<   r;   ©rB   s    r   ÚClearÚBuilder.Clear¦   sT   € à€DÔÜ�D—J‘J“€D„IØ€D„MØ€D„NØ€D„LØ€D„KØ€DÔØ€DÔØ€DÔà€D…Mr   c                 ój   • U R                   (       d
  [        5       eU R                  U R                  S $ )at  Return the portion of the buffer that has been used for writing data.

This is the typical way to access the FlatBuffer data inside the
builder. If you try to access `Builder.Bytes` directly, you would need
to manually index it with `Head()`, since the buffer is constructed
backwards.

It raises BuilderNotFinishedError if the buffer has not been finished
with `Finish`.
N)r;   r*   r3   r5   rI   s    r   ÚOutputÚBuilder.Output´   s)   € ð �=�=Ü#Ó%Ð%à�:‰:�d—i‘i�kÐ"Ð"r   c                 ór   • U R                  5         S/U-  U l        U R                  5       U l        SU l        g)z=StartObject initializes bookkeeping for writing a new object.r   TN)ÚassertNotNestedr4   ÚOffsetr7   r9   )rB   Ú	numfieldss     r   ÚStartObjectÚBuilder.StartObjectÆ   s4   € ð 	×ÑÔð ˜# 	™/€DÔØ—[‘[“]€D„NØ€D…Kr   c           	      óú  • U R                  S5        U R                  5       n/ nSn[        U R                  5       H*  nUS:X  a
  U(       a  M  OX-
  nSnUR	                  U5        M,     [
        R                  " XR                  -
  5      nUR	                  U5        [        U5      nU R                  R                  U5      nUGc’  [        U R                  5      S-
  nSnSnUS:¼  aJ  Sn	U R                  U   nUS-  nUS:X  a  U(       a  US-  nM0  OX-
  n	SnU R                  U	5        US:¼  a  MJ  U R                  [        R                  " U5      5        [        U R                  5      U-
  [        -   n
U
[        R                  R                   -  n
U R                  [        R                  " U
5      5        ["        R                  " [        U R$                  5      U-
  5      n[&        R(                  " [*        R,                  U R$                  U["        R                  " U R                  5       U-
  5      5        U R                  5       U R                  U'   Oœ["        R                  " [        U R$                  5      U-
  5      n[
        R                  " U5      U l        [&        R(                  " [*        R,                  U R$                  U R1                  5       ["        R                  " Xa-
  5      5        SU l        U$ )aX  WriteVtable serializes the vtable for the current object, if needed.

Before writing out the vtable, this checks pre-existing vtables for
equality to this one. If an equal vtable is found, point the object to
the existing vtable and return.

Because vtable values are sensitive to alignment of object data, not
all logically-equal vtables will be deduplicated.

A vtable has the following format:
  <VOffsetT: size of the vtable in bytes, including this value>
  <VOffsetT: size of the object in bytes, including the vtable offset>
  <VOffsetT: offset for a field> * N, where N is the number of fields
             in the schema for this type. Includes deprecated fields.
Thus, a vtable is made of 2 + N elements, each VOffsetT bytes wide.

An object has the following format:
  <SOffsetT: offset to this object's vtable (may be negative)>
  <byte: data>+
r   TFNr   )ÚPrependSOffsetTRelativerQ   Úreversedr4   Úappendr   rA   r7   Útupler8   ÚgetrH   ÚPrependVOffsetTr   ÚVtableMetadataFieldsÚNÚ	bytewidthr   r3   r   ÚWriter   Úsoffsetr5   ÚHead)rB   ÚobjectOffsetÚvtKeyÚtrimÚelemÚ
objectSizeÚ	vt2OffsetÚiÚtrailingÚoffÚvBytesÚobjectStarts               r   ÚWriteVtableÚBuilder.WriteVtableÐ   s  € ð0 	× Ñ  Ô#à—;‘;“=€Là€EØ€DÜ˜×,Ñ,Ö-ˆØ	�‹ÞÙ
ð ð Ñ"ˆØˆà‡l�l�4Öñ .ô ×&Ò& |·n±nÑ'DÓE€JØ	‡L�L�ÔÜ�%‹L€Eà—‘× Ñ  Ó'€IØÒô
 ˆd×!Ñ!Ó
" QÑ
&€aØ€hØ€dØ�‹FØˆØ×"Ñ" 1Ñ%ˆØ	ˆQ‰ˆà�1‹9ÞØ˜‰MˆHÙð ð Ñ#ˆ#Øˆ$à×Ñ˜SÔ!ð ��Fð( ×Ñœ=×0Ò0°Ó<Ô=ô �4×&Ñ&Ó'¨(Ñ2Ô5IÑI€fØ”—‘×)Ñ)Ñ)€fØ
×Ñœ=×0Ò0°Ó8Ô9ô "×)Ò)¬#¨d¯j©j«/¸LÑ*HÓI€kÜ‡l‚lÜ
�.‰.Ø
�*‰*Ø
Ü
×
Ò
 §¡£°Ñ <Ó
=ô	ð !ŸK™K›M€d‡l�l�5Òô "×)Ò)¬#¨d¯j©j«/¸LÑ*HÓI€kÜ×'Ò'¨Ó4€d„iô ‡l‚lÜ
�.‰.Ø
�*‰*Ø
�)‰)‹+Ü
×
Ò
 	Ñ 8Ó
9ô	ð €DÔØÐr   c                 óP   • U R                  5         SU l        U R                  5       $ )z>EndObject writes data necessary to finish object construction.F)ÚassertNestedr9   rm   rI   s    r   Ú	EndObjectÚBuilder.EndObject>  s$   € à×ÑÔØ€D„KØ×ÑÓÐr   c                 óF  • [        U R                  5      [        R                  :X  a  Sn[	        U5      e[        [        U R                  5      S-  [        R                  5      nUS:X  a  Sn[        U5      nU R                  X2[        U R                  5      -
  S& X0l        g)z…Doubles the size of the byteslice, and copies the old data towards

the end of the new buffer (since we build the buffer backwards).
z2flatbuffers: cannot grow buffer beyond 2 gigabytesr/   r   r   N)rH   r3   r1   r?   r'   Úminr@   )rB   rD   ÚnewSizeÚbytes2s       r   ÚGrowByteBufferÚBuilder.GrowByteBufferD  s€   € ô
 ˆ4�:‰:ƒœ'×1Ñ1Ó1Ø@€cÜ˜SÓ!Ð!ä”#�d—j‘j“/ AÑ%¤w×'>Ñ'>Ó?€GØ�!ƒ|Ø€gÜ�wÓ€FØ*.¯*©*€F”S˜Ÿ™“_Ñ$Ð&Ð'Ø…Jr   c                 ó   • U R                   $ )z‡Get the start of useful data in the underlying byte buffer.

Note: unlike other functions, this value is interpreted as from the
left.
)r5   rI   s    r   ra   ÚBuilder.HeadV  s   € ð �9‰9Ðr   c                 óF   • [        U R                  5      U R                  -
  $ )z)Offset relative to the end of the buffer.)rH   r3   r5   rI   s    r   rQ   ÚBuilder.Offseta  s   € äˆt�z‰z‹?˜TŸY™YÑ&Ð&r   c                 ór   • US::  a  gU R                   U-
  nSU-  U R                  X R                   & X l         g)z'Pad places zeros at the current offset.r   Nó    )r5   r3   )rB   ÚnÚnew_heads      r   ÚPadÚBuilder.Pade  s4   € àˆAƒvØØ�y‰y˜1‰}€HØ'.°¡{€D‡J�JˆxŸ)™)Ð$Ø…Ir   c                 óD  • XR                   :”  a  Xl         U R                  n[        U R                  5      nXC-
  U-   ) S-   nXQS-
  -  nXQ-   U-   nX6:  a5  UnU R	                  5         [        U R                  5      nX4U-
  -  nX6:  a  M5  X0l        U R                  U5        g)a   Prep prepares to write an element of `size` after `additional_bytes`

have been written, e.g. if you write a string, you need to align
such the int length field is aligned to SizeInt32, and the string
data follows it directly.
If all you need to do is align, `additionalBytes` will be 0.
r   N)r6   r5   rH   r3   rw   r�   )rB   ÚsizeÚadditionalBytesr5   Úbuf_lenÚ	alignSizeÚneededÚ
oldBufSizes           r   ÚPrepÚBuilder.Prepm  s¤   € ð �m‰mÓØ„mð �9‰9€DÜ�$—*‘*‹o€GØ‘> OÑ3Ð4¸Ñ9€IØ˜‘Ñ€Ið Ñ Ñ/€FØ
‹-Ø€jØ
×ÑÔÜ�D—J‘J“€gØ
˜
Ñ"Ñ"€dð	 �-ð
 „IØ‡H�HˆYÕr   c                 ó  • U R                  [        R                  R                  S5        XR	                  5       ::  d  Sn[        U5      eU R	                  5       U-
  [        R                  R                  -   nU R                  U5        g)zUPrependSOffsetTRelative prepends an SOffsetT, relative to where it

will be written.
r   ú%flatbuffers: Offset arithmetic error.N)rŠ   r]   r   r^   rQ   r   ÚPlaceSOffsetT©rB   rj   rD   Úoff2s       r   rV   ÚBuilder.PrependSOffsetTRelative‹  óe   € ð 	‡I�IŒa�o‰o×'Ñ'¨Ô+Ø—;‘;“=Ó Ø3€cÜ! #Ó&Ð&Ø�;‰;‹=˜3Ñ¤§¡×!:Ñ!:Ñ:€DØ×Ñ�tÕr   c                 ó  • U R                  [        R                  R                  S5        XR	                  5       ::  d  Sn[        U5      eU R	                  5       U-
  [        R                  R                  -   nU R                  U5        g)zUPrepends an unsigned offset into vector data, relative to where it

will be written.
r   r�   N)rŠ   r]   r   r^   rQ   r   ÚPlaceUOffsetTr�   s       r   ÚPrependUOffsetTRelativeÚBuilder.PrependUOffsetTRelative›  r’   r   c                 óÜ   • U R                  5         SU l        X l        U R                  [        R
                  R                  X-  5        U R                  X1U-  5        U R                  5       $ )zÔStartVector initializes bookkeeping for writing a new vector.

A vector has the following format:
  - <UOffsetT: number of elements in this vector>
  - <T: data>+, where T is the type of elements of this vector.
T)rP   r9   r<   rŠ   r]   ÚUint32Flagsr^   rQ   )rB   ÚelemSizeÚnumElemsÚ	alignments       r   ÚStartVectorÚBuilder.StartVectorª  sU   € ð 	×ÑÔØ€D„KØ"ÔØ‡I�IŒa�m‰m×%Ñ% xÑ':Ô;Ø‡I�Iˆi HÑ,Ô-Ø�;‰;‹=Ðr   Nc                 ó  • U R                  5         SU l        U(       a3  [        R                  " S[        SS9  XR
                  :w  a
  [        5       eU R                  U R
                  5        SU l        U R                  5       $ )z>EndVector writes data necessary to finish vector construction.FznumElems is deprecated.r/   )Ú
stacklevelN)	rp   r9   ÚwarningsÚwarnÚDeprecationWarningr<   r-   r”   rQ   )rB   rš   s     r   Ú	EndVectorÚBuilder.EndVector»  sm   € ð 	×ÑÔà€D„Kö Ü‡m‚mÐ-Ô/AÈaÒPØ	×(Ñ(Ó	(Ü'Ó)Ð)ð 	×Ñ�t×*Ñ*Ô+Ø€DÔØ�;‰;‹=Ðr   c                 ó´   • U R                   (       d  0 U l         OXR                   ;   a  U R                   U   $ U R                  XU5      nX@R                   U'   U$ )zgCreateSharedString checks if the string is already written to the buffer

before calling CreateString.
)r=   ÚCreateString)rB   ÚsÚencodingÚerrorsrj   s        r   ÚCreateSharedStringÚBuilder.CreateSharedStringÍ  sW   € ð ××Ø€dÕØ	
× Ñ Ó	 Ø×Ñ Ñ"Ð"à
×
Ñ
˜A¨Ó
0€CØ×Ñ�qÑà€Jr   c                 óH  • U R                  5         SU l        [        U[        R                  5      (       a  UR                  X#5      nO-[        U[        R                  5      (       a  UnO[        S5      e[        U5      nU R                  [        R                  R                  US-   [        R                  R                  -  5        U R                  S[        R                  5        U R                  U-
  nX`l        X@R                   XfU-   & XPl        U R%                  5       $ )z>CreateString writes a null-terminated byte string as a vector.Tz!non-string passed to CreateStringr   r   )rP   r9   Ú
isinstancer   Ústring_typesr   Úbinary_typesÚ	TypeErrorrH   rŠ   r]   r   r^   Ú
Uint8FlagsÚPlacer5   r3   r<   r£   )rB   r§   r¨   r©   ÚxÚpayload_lenr€   s          r   r¦   ÚBuilder.CreateStringÝ  sÛ   € ð 	×ÑÔà€D„Kô �!”V×(Ñ(×)Ñ)Ø
�(‰(�8Ó
$�aÜ	�A”v×*Ñ*×	+Ñ	+Ø
�aäÐ9Ó:Ð:ä�a“&€KØ‡I�IŒa�o‰o×'Ñ'¨+¸©/¼Q¿\¹\×=SÑ=SÑ)SÔTØ‡J�Jˆq”!—,‘,Ôà�y‰y˜;Ñ&€HØ„IØ45‡J�Jˆx [Ñ0Ð1à%ÔØ�>‰>ÓÐr   c                 óš  • U R                  5         SU l        [        U[        R                  5      (       d  [        S5      e[        U5      nU R                  [        R                  R                  U[        R                  R                  -  5        U R                  U-
  nX0l        XR                  X3U-   & X l        U R                  5       $ )z"CreateString writes a byte vector.Tz*non-byte vector passed to CreateByteVector)rP   r9   r­   r   r¯   r°   rH   rŠ   r]   r   r^   r±   r5   r3   r<   r£   )rB   r³   Údata_lenr€   s       r   ÚCreateByteVectorÚBuilder.CreateByteVector÷  sŸ   € ð 	×ÑÔà€D„Kô �aœ×,Ñ,×-Ñ-ÜÐBÓCÐCä�1‹v€HØ‡I�IŒa�o‰o×'Ñ'¨´A·L±L×4JÑ4JÑ)JÔKØ�y‰y˜8Ñ#€HØ„IØ12‡J�Jˆx XÑ-Ð.à"ÔØ�>‰>ÓÐr   c                 óŽ  • [         c  [        S5      e[        U[         R                  5      (       d  [	        S5      eUR
                  R                  S;  a  [	        S5      eUR                  S:”  a  [	        S5      eU R                  UR                  UR                  UR
                  R                  5        UR
                  R                  S   S:X  a  UnOUR                  S	S
9nUR                  SS9n[        U5      nU R                   U-
  nXPl        X0R"                  XUU-   & UR                  U l        U R'                  5       $ )z7CreateNumpyVector writes a numpy array into the buffer.zNumpy was not found.z-non-numpy-ndarray passed to CreateNumpyVector)Úbrh   ÚuÚfz4numpy-ndarray holds elements of unsupported datatyper   z4multidimensional-ndarray passed to CreateNumpyVectorr   Ú<F)ÚinplaceÚC)Úorder)Únpr	   r­   Úndarrayr°   ÚdtypeÚkindÚndimrœ   Úitemsizer„   r›   ÚstrÚbyteswapÚtobytesrH   r5   r3   r<   r£   )rB   r³   Úx_lendÚpayloadr´   r€   s         r   ÚCreateNumpyVectorÚBuilder.CreateNumpyVector  s  € ô 
�zä'Ð(>Ó?Ð?ä�aœŸ™×$Ñ$ÜÐEÓFÐFà‡w�w‡|�|Ð/Ó/ÜÐLÓMÐMà‡v�v�ƒzÜÐLÓMÐMà×Ñ�Q—Z‘Z §¡¨¯©×):Ñ):Ô;ð 	‡w�w‡{�{�1�~˜ÓØ�fà�z‰z %ˆzÐ(€fð �n‰n 3ˆnÐ'€Gô �g“,€KØ�y‰y˜;Ñ&€HØ„IØ4;‡J�Jˆx [Ñ0Ð1àŸ&™&€DÔØ�>‰>ÓÐr   c                 ó:   • U R                   (       d
  [        5       eg)z7Check that we are in the process of building an object.N)r9   r   rI   s    r   rp   ÚBuilder.assertNested0  s   € ð �;�;ÜÓÐð r   c                 ó:   • U R                   (       a
  [        5       eg)zcCheck that no other objects are being built while making this object.

If not, raise an exception.
N)r9   r!   rI   s    r   rP   ÚBuilder.assertNotNested6  s   € ð ‡{‡{Ü‹OÐð r   c                 óŽ   • [         R                  " U[         R                  5        XR                  5       :w  a  Sn[	        U5      eg)z‡Structs are always stored inline, so need to be created right

where they are used. You'll get this error if you created it
elsewhere.
zkflatbuffers: Tried to write a Struct at an Offset that is different from the current Offset of the Builder.N)r]   Úenforce_numberr   rQ   r$   )rB   ÚobjrD   s      r   ÚassertStructIsInlineÚBuilder.assertStructIsInline?  sA   € ô ×Ò�Sœ!Ÿ/™/Ô*Ø
�k‰k‹mÓðAð 
ô # 3Ó'Ð'ð r   c                 ó^   • U R                  5         U R                  5       U R                  U'   g)zKSlot sets the vtable key `voffset` to the current location in the

buffer.
N)rp   rQ   r4   )rB   Úslotnums     r   ÚSlotÚBuilder.SlotN  s&   € ð
 	×ÑÔØ#'§;¡;£=€D×Ñ˜Ò r   c                 óŠ  • [         R                  " U[         R                  5        [         R                  R                  nUb  U[         R                  R                  -  nU(       a  U[         R                  R                  -  nU R                  U R                  U5        UbŸ  U R                  [         R                  R                  [        R                  5        [         R                  R                  SU5      n[        [        R                  S-
  SS5       H%  nU R                  X5   [         R                  5        M'     U R                  U5        U(       aX  [        U R                   5      U R"                  -
  n[         R                  " U[         R                  5        U R%                  U5        SU l        U R"                  $ )ú=Finish finalizes a buffer, pointing to the given `rootTable`.z>BBBBr   éÿÿÿÿT)r]   rÔ   r   r^   Ú
Int32FlagsrŠ   r6   r   ÚFILE_IDENTIFIER_LENGTHÚstructÚunpackÚranger²   r±   r•   rH   r3   r5   ÚPrependInt32r;   )rB   Ú	rootTableÚ
sizePrefixÚfile_identifierÚprepSizerh   r„   s          r   Ú__FinishÚBuilder.__FinishX  s2  € ä×Ò�Y¤§¡Ô0ä�‰×(Ñ(€HØÑ"Ø”!—,‘,×(Ñ(Ñ(€hÞØ”!—,‘,×(Ñ(Ñ(€hØ‡I�Iˆd�m‰m˜XÔ&àÑ"Ø
‡i�i”—‘×)Ñ)¬6×+HÑ+HÔIô
 Ÿ™Ÿ™¨°ÓA€oÜ”V×2Ñ2°QÑ6¸¸BÖ?ˆ!à�
‰
�?Ñ%¤q§|¡|Ö4ñ @ð 	× Ñ  Ô+ÞÜ�—‘‹_˜tŸy™yÑ(€dÜ×Ò�tœQŸ\™\Ô*Ø
×Ñ˜ÔØ€D„MØ�9‰9Ðr   c                 ó$   • U R                  USUS9$ )rÝ   F©rç   ©Ú_Builder__Finish©rB   rå   rç   s      r   ÚFinishÚBuilder.Finishv  s   € à�=‰=˜ E¸?ˆ=ÐKÐKr   c                 ó$   • U R                  USUS9$ )zWFinish finalizes a buffer, pointing to the given `rootTable`,

with the size prefixed.
Trì   rí   rï   s      r   ÚFinishSizePrefixedÚBuilder.FinishSizePrefixedz  s   € ð
 �=‰=˜ D¸/ˆ=ÐJÐJr   c                 ó^   • U R                  UR                  S5        U R                  X!5        g )Nr   )rŠ   r^   r²   )rB   Úflagsrj   s      r   ÚPrependÚBuilder.Prepend‚  s    € Ø‡I�Iˆe�o‰o˜qÔ!Ø‡J�JˆsÕr   c                 óâ   • Ub  [         R                  " X15        Ub  [         R                  " XA5        X4:w  d  U R                  (       a'  Ub#  U R                  X5        U R	                  U5        g g g ©N)r]   rÔ   r:   r÷   rÚ   )rB   rö   Úor³   Úds        r   ÚPrependSlotÚBuilder.PrependSlot†  sX   € Ø�}Ü×Ò�qÔ Ø�}Ü×Ò�qÔ Øƒv�$×$×$¨©Ø
‡l�l�5ÔØ
‡i�i�…lð *7Ð$r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   Ú	BoolFlags©rB   Úargss     r   ÚPrependBoolSlotÚBuilder.PrependBoolSlot�  ó   € Ø×Ò”Q—[‘[Ð( 4Ô(r   c                 óF   • U R                   " [        R                  /UQ76   g rú   ©rý   r]   r±   r  s     r   ÚPrependByteSlotÚBuilder.PrependByteSlot’  ó   € Ø×Ò”Q—\‘\Ð) DÔ)r   c                 óF   • U R                   " [        R                  /UQ76   g rú   r  r  s     r   ÚPrependUint8SlotÚBuilder.PrependUint8Slot•  r
  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   ÚUint16Flagsr  s     r   ÚPrependUint16SlotÚBuilder.PrependUint16Slot˜  ó   € Ø×Ò”Q—]‘]Ð* TÔ*r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   r˜   r  s     r   ÚPrependUint32SlotÚBuilder.PrependUint32Slot›  r  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   ÚUint64Flagsr  s     r   ÚPrependUint64SlotÚBuilder.PrependUint64Slotž  r  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   Ú	Int8Flagsr  s     r   ÚPrependInt8SlotÚBuilder.PrependInt8Slot¡  r  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   Ú
Int16Flagsr  s     r   ÚPrependInt16SlotÚBuilder.PrependInt16Slot¤  r
  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   rß   r  s     r   ÚPrependInt32SlotÚBuilder.PrependInt32Slot§  r
  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   Ú
Int64Flagsr  s     r   ÚPrependInt64SlotÚBuilder.PrependInt64Slotª  r
  r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   ÚFloat32Flagsr  s     r   ÚPrependFloat32SlotÚBuilder.PrependFloat32Slot­  ó   € Ø×Ò”Q—^‘^Ð+ dÔ+r   c                 óF   • U R                   " [        R                  /UQ76   g rú   )rý   r]   ÚFloat64Flagsr  s     r   ÚPrependFloat64SlotÚBuilder.PrependFloat64Slot°  r-  r   c                 óv   • X#:w  d  U R                   (       a#  U R                  U5        U R                  U5        gg)z¼PrependUOffsetTRelativeSlot prepends an UOffsetT onto the object at

vtable slot `o`. If value `x` equals default `d`, then the slot will
be set to zero and no other data will be written.
N)r:   r•   rÚ   )rB   rû   r³   rü   s       r   ÚPrependUOffsetTRelativeSlotÚ#Builder.PrependUOffsetTRelativeSlot³  s/   € ð 	ƒv�×#×#Ø
×"Ñ" 1Ô%Ø
‡i�i�…lð $r   c                 óž   • [         R                  " U[         R                  5        X#:w  a#  U R                  U5        U R	                  U5        gg)z®PrependStructSlot prepends a struct onto the object at vtable slot `o`.

Structs are stored inline, so nothing additional is being added. In
generated code, `d` is always 0.
N)r]   rÔ   r   rÖ   rÚ   )rB   Úvr³   rü   s       r   ÚPrependStructSlotÚBuilder.PrependStructSlot¾  s;   € ô ×Ò�QœŸ™Ô(ØƒvØ
×Ñ Ô"Ø
‡i�i�…lð r   c                 óD   • U R                  [        R                  U5        g)zLPrepend a `bool` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r   ©rB   r³   s     r   ÚPrependBoolÚBuilder.PrependBoolÌ  ó   € ð
 	‡L�L”—‘˜aÕ r   c                 óD   • U R                  [        R                  U5        g)zLPrepend a `byte` to the Builder buffer.

Note: aligns and checks for space.
N©r÷   r]   r±   r:  s     r   ÚPrependByteÚBuilder.PrependByteÓ  ó   € ð
 	‡L�L”—‘˜qÕ!r   c                 óD   • U R                  [        R                  U5        g)zNPrepend an `uint8` to the Builder buffer.

Note: aligns and checks for space.
Nr?  r:  s     r   ÚPrependUint8ÚBuilder.PrependUint8Ú  rB  r   c                 óD   • U R                  [        R                  U5        g)zOPrepend an `uint16` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r  r:  s     r   ÚPrependUint16ÚBuilder.PrependUint16á  ó   € ð
 	‡L�L”—‘ Õ"r   c                 óD   • U R                  [        R                  U5        g)zOPrepend an `uint32` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r˜   r:  s     r   ÚPrependUint32ÚBuilder.PrependUint32è  rI  r   c                 óD   • U R                  [        R                  U5        g)zOPrepend an `uint64` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r  r:  s     r   ÚPrependUint64ÚBuilder.PrependUint64ï  rI  r   c                 óD   • U R                  [        R                  U5        g)zMPrepend an `int8` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r  r:  s     r   ÚPrependInt8ÚBuilder.PrependInt8ö  r=  r   c                 óD   • U R                  [        R                  U5        g)zNPrepend an `int16` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r  r:  s     r   ÚPrependInt16ÚBuilder.PrependInt16ý  rB  r   c                 óD   • U R                  [        R                  U5        g)zNPrepend an `int32` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   rß   r:  s     r   rä   ÚBuilder.PrependInt32  rB  r   c                 óD   • U R                  [        R                  U5        g)zNPrepend an `int64` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r&  r:  s     r   ÚPrependInt64ÚBuilder.PrependInt64  rB  r   c                 óD   • U R                  [        R                  U5        g)zOPrepend a `float32` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r*  r:  s     r   ÚPrependFloat32ÚBuilder.PrependFloat32  ó   € ð
 	‡L�L”—‘ Õ#r   c                 óD   • U R                  [        R                  U5        g)zOPrepend a `float64` to the Builder buffer.

Note: aligns and checks for space.
N)r÷   r]   r/  r:  s     r   ÚPrependFloat64ÚBuilder.PrependFloat64  r^  r   c                 ó   • Xl         g)zëIn order to save space, fields that are set to their default value

don't get serialized into the buffer. Forcing defaults provides a
way to manually disable this optimization. When set to `True`, will
always serialize default values.
N)r:   )rB   r:   s     r   ÚForceDefaultsÚBuilder.ForceDefaults   s
   € ð 'Õr   c                 óD   • U R                  [        R                  U5        g rú   )r÷   r]   r   r:  s     r   r[   ÚBuilder.PrependVOffsetT,  s   € Ø‡L�L”—‘ !Õ$r   c                 óÆ   • [         R                  " X5        U R                  UR                  -
  nX0l        [        R
                  " UR                  U R                  X15        g)zcPlace prepends a value specified by `flags` to the Builder,

without checking for available space.
N)r]   rÔ   r5   r^   r   r_   Úpacker_typer3   )rB   r³   rö   r€   s       r   r²   ÚBuilder.Place/  sC   € ô ×Ò�QÔØ�y‰y˜5Ÿ?™?Ñ*€HØ„IÜ
‡L‚L�×"Ñ" D§J¡J°Õ<r   c                 ó  • [         R                  " U[         R                  5        U R                  [         R                  R                  -
  nX l        [
        R                  " [        R                  U R                  X!5        g)zOPlaceVOffsetT prepends a VOffsetT to the Builder, without checking

for space.
N)
r]   rÔ   r   r5   r^   r   r_   r   Úvoffsetr3   ©rB   r³   r€   s      r   ÚPlaceVOffsetTÚBuilder.PlaceVOffsetT:  óM   € ô
 ×Ò�QœŸ™Ô(Ø�y‰yœ1Ÿ?™?×4Ñ4Ñ4€HØ„IÜ
‡L‚L”—‘ §¡¨XÕ9r   c                 ó  • [         R                  " U[         R                  5        U R                  [         R                  R                  -
  nX l        [
        R                  " [        R                  U R                  X!5        g)zOPlaceSOffsetT prepends a SOffsetT to the Builder, without checking

for space.
N)
r]   rÔ   r   r5   r^   r   r_   r   r`   r3   rl  s      r   rŽ   ÚBuilder.PlaceSOffsetTD  ro  r   c                 ó  • [         R                  " U[         R                  5        U R                  [         R                  R                  -
  nX l        [
        R                  " [        R                  U R                  X!5        g)zOPlaceUOffsetT prepends a UOffsetT to the Builder, without checking

for space.
N)
r]   rÔ   r   r5   r^   r   r_   r   Úuoffsetr3   rl  s      r   r”   ÚBuilder.PlaceUOffsetTN  ro  r   )r3   r4   r;   r:   r5   r6   r9   r7   r=   r<   r8   )i   rú   )zutf-8Ústrict)Dr   r   r   r   r   Ú	__slots__r?   rE   rJ   rM   rS   rm   rq   rw   ra   rQ   r�   rŠ   rV   r•   rœ   r£   rª   r¦   r¸   rÍ   rp   rP   rÖ   rÚ   rî   rð   ró   r÷   rý   r  r  r  r  r  r  r  r   r#  r'  r+  r0  r3  r7  r;  r@  rD  rG  rK  rN  rQ  rT  rä   rY  r\  r`  rc  r[   r²   rm  rŽ   r”   r   r   r   r   r1   r1   c   sK  † ñð*€)ðð
 €/ôò.ò#ò$òlò\òò$ò'òòò<ò òô"ô$ô ò4ò("òJòò(ò1ôô<LôKòòò)ò*ò*ò+ò+ò+ò)ò*ò*ò*ò,ò,ò	ò
ò!ò"ò"ò#ò#ò#ò!ò"ò"ò"ò$ò$ò'ò%ò	=ò:ò:õ:r   r1   )r    Ú r   r   r   r]   r   r   r	   r
   r   r   r   r   rÂ   ÚRuntimeErrorr   r   r!   r$   r'   r*   r-   r\   Úobjectr1   r   r   r   Ú<module>rz     s–   ðó å Ý Ý Ý Ý #ß =Ý ß GÑ Gáƒ^€ô˜Lô ô�|ô ô�Lô ô˜\ô ô�|ô ô˜lô ô ô ð Ð ôs:ˆfõ s:r   