Ë
    ÍÍ:jÒ  ã                   ó2   — d dl mZ d dl mZ  G d„ de«      Zy)é   )Úencode)Únumber_typesc                   ó\   — e Zd ZdZdZd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zy)ÚTablez�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                 óh   — t        j                  |t         j                  «       || _        || _        y )N)ÚNÚenforce_numberÚUOffsetTFlagsr   r   )ÚselfÚbufÚposs      úf/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/flatbuffers/table.pyÚ__init__zTable.__init__   s$   € Ü×Ñ�Sœ!Ÿ/™/Ô*à€D„JØ€D…Hó    c                 ó  — | j                   | j                  t        j                  | j                   «      z
  }| j                  t        j                  |«      }||k  r#| j                  t        j                  ||z   «      S y)zxOffset 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   ÚOffsetzTable.Offset!   s^   € ð �X‰X˜Ÿ™¤§¡°$·(±(Ó;Ñ;€FØ—‘œŸ™¨&Ó1€IØ�iÒØ�X‰X”a—o‘o v°Ñ'<Ó=Ð=Ør   c                 óÂ   — t        j                  |t         j                  «       |t        j                  t         j                  j
                  | j                  |«      z   S )z:Indirect retrieves the relative offset stored at `offset`.)r
   r   r   r   r   Úpacker_typer   )r   Úoffs     r   ÚIndirectzTable.Indirect-   s<   € ä×Ñ�Sœ!Ÿ/™/Ô*Ø”—‘œAŸO™O×7Ñ7¸¿¹ÀSÓIÑIÐIr   c                 ó¤  — t        j                  |t         j                  «       |t        j                  t         j                  j
                  | j                  |«      z  }|t         j                  j                  z   }t        j                  t         j                  j
                  | j                  |«      }t        | j                  |||z    «      S )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   ÚStringz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 E¨F¡NÐ3Ó4Ð4r   c                 óV  — t        j                  |t         j                  «       || j                  z  }|t	        j
                  t         j                  j                  | j                  |«      z  }t	        j
                  t         j                  j                  | j                  |«      }|S )zfVectorLen 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   Ú	VectorLenzTable.VectorLen:   so   € ô
 ×Ñ�Sœ!Ÿ/™/Ô*àˆ4�8‰8�O€CØŒ6�:‰:”a—o‘o×1Ñ1°4·:±:¸sÓCÑC€CÜ
�*‰*”Q—_‘_×0Ñ0°$·*±*¸cÓ
B€CØ€Jr   c                 óì   — t        j                  |t         j                  «       || j                  z  }|| j	                  t         j                  |«      z   }|t         j                  j
                  z  }|S )zjVector 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   ÚVectorzTable.VectorF   sW   € ô
 ×Ñ�Sœ!Ÿ/™/Ô*àˆ4�8‰8�O€CØˆd�h‰h”q—‘¨Ó,Ñ,€AàŒ�‰×	"Ñ	"Ñ"€AØ€Hr   c                 ó  — t        |«      t        u sJ ‚t        j                  |t        j                  «       || j
                  z  }|| j                  t        j                  |«      z   |_        | j                  |_        y)z]Union 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   ÚUnionzTable.UnionS   s]   € ô
 �‹8”uÑÐÐÜ×Ñ�Sœ!Ÿ/™/Ô*àˆ4�8‰8�O€CØ�4—8‘8œAŸO™O¨SÓ1Ñ1€B„FØ�z‰z€B…Hr   c                 ó¾   — t        j                  |t         j                  «       |j                  t	        j
                  |j                  | j                  |«      «      S )zVGet 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   z	Table.Get_   s>   € ô
 ×Ñ�Sœ!Ÿ/™/Ô*Ø�=‰=œŸ™ E×$5Ñ$5°t·z±zÀ3ÓGÓHÐHr   c                 óè   — t        j                  |t         j                  «       |�t        j                  ||«       | j                  |«      }|dk(  r|S | j	                  || j
                  |z   «      S )Nr   )r
   r   r   r   r   r   )r   ÚslotÚdÚvalidator_flagsr   s        r   ÚGetSlotzTable.GetSlotg   s_   € Ü×Ñ�Tœ1Ÿ?™?Ô+ØÐ"Ü×Ñ�q˜/Ô*Ø
�+‰+�dÓ
€CØ
ˆa‚xØ€hØ�8‰8�O T§X¡X°¡^Ó4Ð4r   c                 ó´   — | j                  |«      }| j                  |«      }t        j                  |«      }t	        j
                  || j                  ||«      S )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.
    )r+   r(   r
   Úto_numpy_typer   ÚGetVectorAsNumpyr   )r   r2   r   Úoffsetr$   Únumpy_dtypes         r   r:   zTable.GetVectorAsNumpyp   sI   € ð �[‰[˜Ó€FØ�^‰^˜CÓ €FÜ—/‘/ %Ó(€KÜ×"Ñ" ;°·
±
¸FÀFÓKÐKr   c                 óp   — t        j                  |«      }t        j                  || j                  ||«      S )a	  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
   r9   r   r:   r   )r   r2   r   r$   r<   s        r   ÚGetArrayAsNumpyzTable.GetArrayAsNumpy|   s-   € ô —/‘/ %Ó(€KÜ×"Ñ" ;°·
±
¸FÀCÓHÐHr   c                 óÆ   — t        j                  |t         j                  «       t        j                  |t         j                  «       | j                  |«      }|dk(  r|S |S )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   r4   r5   r   s       r   ÚGetVOffsetTSlotzTable.GetVOffsetTSlot‡   sK   € ô ×Ñ�Tœ1Ÿ?™?Ô+Ü×Ñ�QœŸ™Ô(à
�+‰+�dÓ
€CØ
ˆa‚xØ€hØ€Jr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   r%   r(   r+   r/   r   r7   r:   r>   r@   © r   r   r   r      sN   „ ñð
 €)òò
òJò
5ò
òò
òIò5ò
Lò	Iór   r   N)Ú r   r   r
   Úobjectr   rF   r   r   ú<module>rI      s   ðõ Ý ôAˆFõ Ar   