
    ri                     X    S SK Jr  S SK Jr  S SKJr  S SKJrJr  \" 5       rS r	S r
S rg)	   )number_types)packer)memoryview_type)import_numpyNumpyRequiredForThisFeaturec                 >    U R                  [        U5      U5      S   $ )z6Get decodes a value at buf[head] using `packer_type`.     )unpack_fromr   )packer_typebufheads      X/home/kim/smarthome/piper_models/venv/lib/python3.13/site-packages/flatbuffers/encode.pyGetr      s    ""?3#7>qAA    c                 N    [         b  [         R                  XX#S9$ [        S5      e)ziGetVecAsNumpy decodes values starting at buf[head] as
`numpy_type`, where `numpy_type` is a numpy dtype. )dtypecountoffsetzNumpy was not found.)np
frombufferr   )
numpy_typer   r   r   s       r   GetVectorAsNumpyr      s*     
~ }}S%}OO)*@AAr   c                 (    U R                  XU5        g)z4Write encodes `n` at buf[head] using `packer_type`. N)	pack_into)r   r   r   ns       r   Writer   &   s    #Q'r   N) r   Nr   compatr   r   r   r   r   r   r    r   r   <module>r!      s+       # =^B
B(r   