ó
    Š“,jÒ  ã                   ó2   • S SK Jr  S SK Jr   " S S\5      rg)é   )Úencode)Únumber_typesc                   ód   • \ 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 rSrg)ÚTableé   z‰Table wraps a byte slice and provides read access to its data.

The variable `Pos` indicates the root of the FlatBuffers object therein.
)ÚBytesÚPosc                 óf   • [         R                  " U[         R                  5        Xl        X l        g )N)ÚNÚenforce_numberÚUOffsetTFlagsr   r	   )ÚselfÚbufÚposs      ÚŸC:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\flatbuffers/table.pyÚ__init__ÚTable.__init__   s    € Ü×Ò�Sœ!Ÿ/™/Ô*à„JØ…Hó    c                 ó   • U R                   U R                  [        R                  U R                   5      -
  nU R                  [        R                  U5      nX:  a"  U R                  [        R                  X!-   5      $ g)zpOffset provides access into the Table's vtable.

Deprecated fields are ignored by checking the vtable's length.
é    )r	   ÚGetr   ÚSOffsetTFlagsÚVOffsetTFlags)r   ÚvtableOffsetÚvtableÚ	vtableEnds       r   ÚOffsetÚTable.Offset!   sZ   € ð �X‰X˜Ÿ™¤§¡°$·(±(Ó;Ñ;€FØ—‘œŸ™¨&Ó1€IØÓØ�X‰X”a—o‘o vÑ'<Ó=Ð=Ør   c                 óÆ   • [         R                  " U[         R                  5        U[        R                  " [         R                  R
                  U R                  U5      -   $ )z:Indirect retrieves the relative offset stored at `offset`.)r   r   r   r   r   Úpacker_typer   )r   Úoffs     r   ÚIndirectÚTable.Indirect-   s<   € ä×Ò�Sœ!Ÿ/™/Ô*Ø”—’œAŸO™O×7Ñ7¸¿¹ÀSÓIÑIÐIr   c                 ó¨  • [         R                  " U[         R                  5        U[        R                  " [         R                  R
                  U R                  U5      -  nU[         R                  R                  -   n[        R                  " [         R                  R
                  U R                  U5      n[        U R                  X"U-    5      $ )z<String gets a string from data stored inside the flatbuffer.)	r   r   r   r   r   r    r   Ú	bytewidthÚbytes)r   r!   ÚstartÚlengths       r   ÚStringÚTable.String2   s‡   € ä×Ò�Sœ!Ÿ/™/Ô*ØŒ6�:Š:”a—o‘o×1Ñ1°4·:±:¸sÓCÑC€CØ”!—/‘/×+Ñ+Ñ+€EÜ�ZŠZœŸ™×3Ñ3°T·Z±ZÀÓE€FÜ�—‘˜E¨F¡NÐ3Ó4Ð4r   c                 óZ  • [         R                  " U[         R                  5        XR                  -  nU[        R
                  " [         R                  R                  U R                  U5      -  n[        R
                  " [         R                  R                  U R                  U5      nU$ )z^VectorLen retrieves the length of the vector whose offset is stored

at "off" in this object.
)r   r   r   r	   r   r   r    r   )r   r!   Úrets      r   Ú	VectorLenÚTable.VectorLen:   sm   € ô
 ×Ò�Sœ!Ÿ/™/Ô*à�8‰8�O€CØŒ6�:Š:”a—o‘o×1Ñ1°4·:±:¸sÓCÑC€CÜ
�*Š*”Q—_‘_×0Ñ0°$·*±*¸cÓ
B€CØ€Jr   c                 óê   • [         R                  " U[         R                  5        XR                  -  nXR	                  [         R                  U5      -   nU[         R                  R
                  -  nU$ )zbVector retrieves the start of data of the vector whose offset is

stored at "off" in this object.
)r   r   r   r	   r   r%   )r   r!   Úxs      r   ÚVectorÚTable.VectorF   sS   € ô
 ×Ò�Sœ!Ÿ/™/Ô*à�8‰8�O€CØ�h‰h”q—‘¨Ó,Ñ,€AàŒ�‰×	"Ñ	"Ñ"€AØ€Hr   c                 ó  • [        U5      [        L d   e[        R                  " U[        R                  5        X R
                  -  nX R                  [        R                  U5      -   Ul        U R                  Ul        g)zUUnion initializes any Table-derived type to point to the union at

the given offset.
N)Útyper   r   r   r   r	   r   r   )r   Út2r!   s      r   ÚUnionÚTable.UnionS   sY   € ô
 �‹8”uÒÐÐÜ×Ò�Sœ!Ÿ/™/Ô*à�8‰8�O€CØ—8‘8œAŸO™O¨SÓ1Ñ1€B„FØ�z‰z€B…Hr   c                 óÂ   • [         R                  " U[         R                  5        UR                  [        R
                  " UR                  U R                  U5      5      $ )zNGet retrieves a value of the type specified by `flags`  at the

given offset.
)r   r   r   Úpy_typer   r   r    r   )r   Úflagsr!   s      r   r   Ú	Table.Get_   s>   € ô
 ×Ò�Sœ!Ÿ/™/Ô*Ø�=‰=œŸš E×$5Ñ$5°t·z±zÀ3ÓGÓHÐHr   c                 óì   • [         R                  " U[         R                  5        Ub  [         R                  " X#5        U R                  U5      nUS:X  a  U$ U R	                  X0R
                  U-   5      $ )Nr   )r   r   r   r   r   r	   )r   ÚslotÚdÚvalidator_flagsr!   s        r   ÚGetSlotÚTable.GetSlotg   s[   € Ü×Ò�Tœ1Ÿ?™?Ô+ØÑ"Ü×Ò�qÔ*Ø
�+‰+�dÓ
€CØ
ˆaƒxØ€hØ�8‰8�O§X¡X°¡^Ó4Ð4r   c                 ó´   • U R                  U5      nU R                  U5      n[        R                  " U5      n[        R
                  " XPR                  XC5      $ )zÕGetVectorAsNumpy returns the vector that starts at `Vector(off)`

as a numpy array with the type specified by `flags`. The array is
a `view` into Bytes, so modifying the returned array will
modify Bytes in place.
)r1   r-   r   Úto_numpy_typer   ÚGetVectorAsNumpyr   )r   r:   r!   Úoffsetr(   Únumpy_dtypes         r   rD   ÚTable.GetVectorAsNumpyp   sE   € ð �[‰[˜Ó€FØ�^‰^˜CÓ €FÜ—/’/ %Ó(€KÜ×"Ò" ;·
±
¸FÓKÐKr   c                 óp   • [         R                  " U5      n[        R                  " X@R                  X25      $ )zõGetArrayAsNumpy returns the array with fixed width that starts at `Vector(offset)`

with length `length` as a numpy array with the type specified by `flags`.
The
array is a `view` into Bytes so modifying the returned will modify Bytes in
place.
)r   rC   r   rD   r   )r   r:   r!   r(   rF   s        r   ÚGetArrayAsNumpyÚTable.GetArrayAsNumpy|   s)   € ô —/’/ %Ó(€KÜ×"Ò" ;·
±
¸FÓHÐHr   c                 óÌ   • [         R                  " U[         R                  5        [         R                  " U[         R                  5        U R                  U5      nUS:X  a  U$ U$ )z—GetVOffsetTSlot retrieves the VOffsetT that the given vtable location

points to. If the vtable value is zero, the default value `d`
will be returned.
r   )r   r   r   r   )r   r=   r>   r!   s       r   ÚGetVOffsetTSlotÚTable.GetVOffsetTSlot‡   sK   € ô ×Ò�Tœ1Ÿ?™?Ô+Ü×Ò�QœŸ™Ô(à
�+‰+�dÓ
€CØ
ˆaƒxØ€hØ€Jr   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   r"   r)   r-   r1   r6   r   r@   rD   rI   rL   Ú__static_attributes__© r   r   r   r      sN   † ñð
 €)òò
òJò
5ò
òò
òIò5ò
Lò	Iõr   r   N)Ú r   r   r   Úobjectr   rU   r   r   Ú<module>rX      s   ðõ Ý ôAˆFõ Ar   