
    hH                     H    S SK Jr  S SK Jr  S SK Jr  S rS	S jrS	S jrS rg)
   )encode)number_types)packerc                 L    [         R                  " [        R                  X5      $ )z&Extract the size prefix from a buffer.)r   Getr   int32bufoffsets     J/var/www/fran/franai/venv/lib/python3.13/site-packages/flatbuffers/util.pyGetSizePrefixr      s    	FLL#	..    c                     U(       a  U[         R                  R                  -  nU[         R                  R                  -  nU[        R                  -   nXU $ )z)Extract the file_identifier from a buffer)r   UOffsetTFlags	bytewidthr   FILE_IDENTIFIER_LENGTH)r
   r   size_prefixedends       r   GetBufferIdentifierr      sK    
l((222FL&&000&...#	Cr   c                     [        XUS9nXB:H  $ )N)r   )r   )r
   r   file_identifierr   gots        r   BufferHasIdentifierr   %   s    C}E#		r   c                 >    X[         R                  R                  -   4$ )zdCreate a slice of a size-prefixed buffer that has

its position advanced just past the size prefix.
)r   
Int32Flagsr   r	   s     r   RemoveSizePrefixr   *   s    
 
|..888	88r   N)F) r   r   r   r   r   r   r    r   r   <module>r      s$      /
	 
9r   