
    h                     \    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S rg	)
   )number_types)packer)memoryview_type)NumpyRequiredForThisFeatureimport_numpy   c                 >    U R                  [        U5      U5      S   $ )z5Get decodes a value at buf[head] using `packer_type`.    )unpack_fromr   )packer_typebufheads      L/var/www/fran/franai/venv/lib/python3.13/site-packages/flatbuffers/encode.pyGetr      s    		 	 !5t	<Q	??    c                 N    [         b  [         R                  XX#S9$ [        S5      e)zjGetVecAsNumpy 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*    
 ^ ==e=KK
%&<
==r   c                 (    U R                  XU5        g)z3Write encodes `n` at buf[head] using `packer_type`.N)	pack_into)r   r   r   ns       r   Writer   +   s    1%r   N) r   Nr   compatr   r   r   r   FILE_IDENTIFIER_LENGTHr   r   r    r   r   <module>r#      s0       # =^ @

>&r   