
    Ng-                     d    d dl mZ d dl mZ d dlmZ d dlmZmZ  e            ZdZ	d Z
d Zd Zd	S )
   )number_types)packer)memoryview_type)import_numpyNumpyRequiredForThisFeature   c                 T    |                      t          |          |          d         S )z7 Get decodes a value at buf[head] using `packer_type`.     )unpack_fromr   )packer_typebufheads      N/var/www/html/ai-engine/env/lib/python3.11/site-packages/flatbuffers/encode.pyGetr      s%    ""?3#7#7>>qAA    c                 j    t           t                               || ||          S t          d          )zn GetVecAsNumpy decodes values starting at buf[head] as
    `numpy_type`, where `numpy_type` is a numpy dtype. N)dtypecountoffsetzNumpy was not found.)np
frombufferr   )
numpy_typer   r   r   s       r   GetVectorAsNumpyr      s4     
~ }}S
%}OOO)*@AAAr   c                 4    |                      |||           dS )z5 Write encodes `n` at buf[head] using `packer_type`. N)	pack_into)r   r   r   ns       r   Writer   (   s     #tQ'''''r   N) r   Nr   compatr   r   r   r   FILE_IDENTIFIER_LENGTHr   r   r    r   r   <module>r#      s                 # # # # # # = = = = = = = =\^^ B B B
B B B( ( ( ( (r   