+
    k'ÏjT  ã                   óò   € ^ RI t ^ RIHtHt ^ RIHtHtHtHt ^ RI	H
t
 ] P                  ] P                   ! R R4      4       4       t] P                  RR R ll4       t] P                   ! R	 R
4      4       tR# )é    N)ÚPyBUF_WRITABLEÚPyBuffer_FillInfo)ÚPyBUF_SIMPLEÚPyBuffer_ReleaseÚPyObject_CheckBufferÚPyObject_GetBuffer)Úmemcpyc                   ó,   a € ] tR t^t o R tR tRtV tR# )Ú
ByteSourcec                óÌ  € Wn          Wn        \        V4      V n        R #   \         d     Mi ; i\        T4      '       dš   \        T\        P                  ! T P                  4      \        4      pT'       gc   RT n        \        P                  ! \        P                  T P                  P                  4      T n        T P                  P                  T n        R # \	        R4      h)NTz'expected bytes, bytearray or memoryview)ÚownerÚptrÚlenÚlengthÚ	TypeErrorr   r   ÚcythonÚaddressÚviewr   Úhas_viewÚcastÚp_ucharÚbuf)Úselfr   Úress   && ÚC/opt/data/cache/scratch/pip-target-lhm_ju4v/lib/python/av/buffer.pyÚ	__cinit__ÚByteSource.__cinit__   s£   € ØŒ
ð	ØŒHô ˜e›*ˆDŒKÙøô	 ô 	Ùð	úô   ×&Ò&ä$ U¬F¯NªN¸4¿9¹9Ó,EÄ|ÓTˆCßØ $�”Ü!Ÿ;š;¤v§~¡~°t·y±y·}±}ÓE�”Ø"Ÿi™iŸm™m�”ÙäÐAÓBÐBs   ˆ   .­.c                ó€   € V P                   '       d,   \        \        P                  ! V P                  4      4       R # R # ©N)r   r   r   r   r   ©r   s   &r   Ú__dealloc__ÚByteSource.__dealloc__%   s%   € Ø�=�=ˆ=ÜœVŸ^š^¨D¯I©IÓ6Ö7ñ ó    )r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r!   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € òC÷,8ð 8r#   r   c                óR   € V ^8„  d   QhR\         P                  R\        R,          /# )é   Ú
allow_noneÚreturnN)r   Úbintr   )Úformats   "r   Ú__annotate__r2   +   s#   € ÷ ñ ¤§¡ð ¼
ÀTÕ8Iñ r#   c                 ód   € V'       d   V f   R # \        V \        4      '       d   V # \        V 4      # r   )Ú
isinstancer   )Úobjr.   s   &&r   Ú
bytesourcer6   *   s(   € ç�c’kÙÜ	�Cœ×	$Ò	$Øˆ
ä˜#‹Ðr#   c                   ó°   a € ] tR t^4t o Rt]P                  V 3R lR l4       tV 3R lR ltV 3R lR lt	V 3R lR	 lt
]R
 4       t]R 4       tR tRtV tR# )ÚBufferzpA base class for PyAV objects which support the buffer protocol, such
as :class:`.Packet` and :class:`.Plane`.

c                ó4   <€ V ^8„  d   QhRS[ P                  /# ©r-   r/   )r   Úsize_t)r1   r+   s   "€r   r2   ÚBuffer.__annotate__<   s   ø€ ÷ ñ ™fŸm™mñ r#   c                ó   € ^ # )r   © r    s   &r   Ú_buffer_sizeÚBuffer._buffer_size;   s   € ár#   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r:   )r   Úp_void)r1   r+   s   "€r   r2   r<   ?   s   ø€ ÷ ñ ™VŸ]™]ñ r#   c                ó"   € \         P                  # r   )r   ÚNULLr    s   &r   Ú_buffer_ptrÚBuffer._buffer_ptr?   s   € Ü�{‰{Ðr#   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r:   )r   r0   )r1   r+   s   "€r   r2   r<   B   s   ø€ ÷ ñ ¡&§+¡+ñ r#   c                ó   € R # )Tr>   r    s   &r   Ú_buffer_writableÚBuffer._buffer_writableB   s   € Ùr#   c                ó^   <€ V ^8„  d   QhRS[ P                  S[,          RS[ P                  /# )r-   r   Úflags)r   ÚpointerÚ	Py_bufferÚint)r1   r+   s   "€r   r2   r<   E   s,   ø€ ÷ Yñ Y¡&§.¡.±Õ";ð YÁFÇJÁJñ Yr#   c                óÄ   € V\         ,          '       d"   V P                  4       '       g   \        R 4      h\        WV P	                  4       V P                  4       ^ V4       R# )úbuffer is not writableN)r   rI   Ú
ValueErrorr   rE   r?   )r   r   rL   s   &&&r   Ú__getbuffer__ÚBuffer.__getbuffer__E   sJ   € Ø”>×!Ô!¨$×*?Ñ*?×*AÒ*AÜÐ5Ó6Ð6ä˜$ d×&6Ñ&6Ó&8¸$×:KÑ:KÓ:MÈqÐRWÖXr#   c                ó"   € V P                  4       # r   )r?   r    s   &r   Úbuffer_sizeÚBuffer.buffer_sizeK   s   € à× Ñ Ó"Ð"r#   c                óh   € \         P                  ! \         P                  V P                  4       4      # )z!The memory address of the buffer.)r   r   r;   rE   r    s   &r   Ú
buffer_ptrÚBuffer.buffer_ptrO   s"   € ô �{Š{œ6Ÿ=™=¨$×*:Ñ*:Ó*<Ó=Ð=r#   c                ó"  € V P                  4       '       g   \        R4      h\        V4      pV P                  4       pVP                  V8w  d   \        RVP                   RV R24      h\        V P                  4       VP                  V4       R# )zÝReplace the data in this object with the given buffer.

Accepts anything that supports the `buffer protocol <https://docs.python.org/3/c-api/buffer.html>`_,
e.g. bytes, NumPy arrays, other :class:`Buffer` objects, etc..

rQ   zgot z bytes; need z bytesN)rI   rR   r6   r?   r   r	   rE   r   )r   ÚinputÚsourceÚsizes   &&  r   ÚupdateÚBuffer.updateT   sz   € ð ×$Ñ$×&Ò&ÜÐ5Ó6Ð6ä'¨Ó.ˆØ"×/Ñ/Ó1ˆà�=‰=˜DÔ Ü˜t F§M¡M ?°-À¸vÀVÐLÓMÐMäˆt×ÑÓ! 6§:¡:¨tÖ4r#   r>   N)r$   r%   r&   r'   Ú__doc__r   Úcfuncr?   rE   rI   rS   ÚpropertyrV   rY   r_   r(   r)   r*   s   @r   r8   r8   4   st   ø‡ € ñð
 ‡\�\÷ó ð÷ð ÷ð ÷Yð Yð ñ#ó ð#ð ñ>ó ð>÷5ð 5r#   r8   )F)r   Úcython.cimports.cpythonr   r   Úcython.cimports.cpython.bufferr   r   r   r   Úcython.cimports.libc.stringr	   ÚfinalÚcclassr   rb   r6   r8   r>   r#   r   Ú<module>ri      sx   ðÛ ß E÷ó õ /ð ‡�Ø‡�÷8ð 8ó ó ð8ð8 ‡�öó ðð ‡�÷/5ð /5ó ò/5r#   