
    mbi                     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)NumpyRequiredForThisFeatureimport_numpy   c                 T    |                      t          |          |          d         S )z5Get decodes a value at buf[head] using `packer_type`.    )unpack_fromr   )packer_typebufheads      b/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/flatbuffers/encode.pyGetr      s%    		 	 !5!5t	<	<Q	??    c                 j    t           t                               || ||          S t          d          )znGetVecAsNumpy 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    
 ^ ==JeF=KKK
%&<
=
==r   c                 4    |                      |||           dS )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#      s                 # # # # # # = = = = = = = =\^^ @ @ @

> 
> 
>& & & & &r   