
    h|                     j    S SK r S SKJr  \" 5       r " S S5      rS rS rS rS rS	 r	S
 r
S rS rg)    N)import_numpyc                   T    \ rS rSrS/r\S
S j5       r\S
S j5       rS rS r	S r
Srg	)KeyValue   _tabc                     [         R                  R                  [         R                  R                  X5      n[        5       nUR                  XU-   5        U$ N)flatbuffersencodeGetpackeruoffsetr   Init)clsbufoffsetnxs        o/var/www/fran/franai/venv/lib/python3.13/site-packages/onnxruntime/quantization/CalTableFlatBuffers/KeyValue.py	GetRootAsKeyValue.GetRootAs   sB    "";#5#5#=#=sKJ	sJ    c                 $    U R                  X5      $ )z6This method is deprecated. Please switch to GetRootAs.)r   )r   r   r   s      r   GetRootAsKeyValueKeyValue.GetRootAsKeyValue   s     }}S))r   c                 L    [         R                  R                  X5      U l        g r	   )r
   tableTabler   )selfr   poss      r   r   KeyValue.Init   s    %%++C5	r   c                     [         R                  R                  R                  U R                  R                  S5      5      nUS:w  a1  U R                  R                  XR                  R                  -   5      $ g )N   r   r
   number_typesUOffsetTFlagspy_typer   OffsetStringPosr   os     r   KeyKeyValue.Key   W    $$22::499;K;KA;NO699##A		$566r   c                     [         R                  R                  R                  U R                  R                  S5      5      nUS:w  a1  U R                  R                  XR                  R                  -   5      $ g )N   r   r$   r+   s     r   ValueKeyValue.Value&   r/   r   )r   N)r   )__name__
__module____qualname____firstlineno__	__slots__classmethodr   r   r   r-   r2   __static_attributes__ r   r   r   r      s>    I  * *
6r   r   c                 &    U R                  S5        g )N   )StartObjectbuilders    r   StartrA   -   s    r   c                     [        U 5      $ )z2This method is deprecated. Please switch to Start.)rA   r?   s    r   KeyValueStartrC   1   s    >r   c                 x    U R                  S[        R                  R                  R	                  U5      S5        g )Nr   PrependUOffsetTRelativeSlotr
   r%   r&   r'   r@   keys     r   AddKeyrI   6   s-    '';+C+C+Q+Q+Y+YZ]+^`abr   c                     [        X5      $ )z3This method is deprecated. Please switch to AddKey.)rI   rG   s     r   KeyValueAddKeyrK   :   s    'r   c                 x    U R                  S[        R                  R                  R	                  U5      S5        g )N   r   rE   r@   values     r   AddValuerP   ?   s-    '';+C+C+Q+Q+Y+YZ_+`bcdr   c                     [        X5      $ )z5This method is deprecated. Please switch to AddValue.)rP   rN   s     r   KeyValueAddValuerR   C   s    G##r   c                 "    U R                  5       $ r	   )	EndObjectr?   s    r   EndrU   H   s    r   c                     [        U 5      $ )z0This method is deprecated. Please switch to End.)rU   r?   s    r   KeyValueEndrW   L   s    w<r   )r
   flatbuffers.compatr   npr   rA   rC   rI   rK   rP   rR   rU   rW   r;   r   r   <module>rZ      sI   
  +^ D
c 
e$
r   