
    vpi                     \    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y	)
   )number_types)packer)memoryview_type)NumpyRequiredForThisFeatureimport_numpy   c                 >    | j                  t        |      |      d   S )z5Get decodes a value at buf[head] using `packer_type`.    )unpack_fromr   )packer_typebufheads      T/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/flatbuffers/encode.pyGetr      s    		 	 !5t	<Q	??    c                 V    t         t         j                  || ||      S t        d      )znGetVecAsNumpy 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.    
 ^ ==JeF=KK
%&<
==r   c                 *    | j                  |||       y)z3Write encodes `n` at buf[head] using `packer_type`.N)	pack_into)r   r   r   ns       r   Writer   +   s    T1%r   N) r   Nr   compatr   r   r   r   FILE_IDENTIFIER_LENGTHr   r   r    r   r   <module>r#      s0       # =^ @

>&r   