o
    ¢Äiâ  ã                   @   s8   d dl mZ d dl mZ d dl mZ dd„ Zdd„ ZdS )	é   )Úencode)Únumber_types)Úpackerc                 C   s   t  tj| |¡S )z&Extract the size prefix from a buffer.)r   ZGetr   Zint32©ÚbufÚoffset© r   úJ/home/kim/smarthome/.venv/lib/python3.10/site-packages/flatbuffers/util.pyÚGetSizePrefix   s   r
   c                 C   s   | |t jj fS )zg
	Create a slice of a size-prefixed buffer that has
	its position advanced just past the size prefix.
	)r   Z
Int32FlagsZ	bytewidthr   r   r   r	   ÚRemoveSizePrefix   s   r   N)Ú r   r   r   r
   r   r   r   r   r	   Ú<module>   s
   