+
    JV-j  ã                  ó`   € ^ RI Ht ^ RIt^ RIt ! R R]P
                  4      t ! R R4      tR# )é    )ÚannotationsNc                  ó:   € ] tR t^tRt^t^t^t^t^t	^t
^	t^
tRtR# )ÚDlpackDeviceTypez3Integer enum for device type codes matching DLPack.© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚCPUÚCUDAÚ
CPU_PINNEDÚOPENCLÚVULKANÚMETALÚVPIÚROCMÚ__static_attributes__r   ó    Úk/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pyarrow/interchange/buffer.pyr   r      s-   † Ù=à
€CØ€DØ€JØ€FØ€FØ€EØ
€CØ„Dr   r   c                  ót   € ] tR t^%tRtRR R llt]R R l4       t]R R l4       tR t	R	 R
 lt
R R ltRtR# )Ú_PyArrowBuffera1  
Data in the buffer is guaranteed to be contiguous in memory.

Note that there is no dtype attribute present, a buffer can be thought of
as simply a block of memory. However, if the column that the buffer is
attached to has a dtype that's supported by DLPack and ``__dlpack__`` is
implemented, then that dtype information will be contained in the return
value from ``__dlpack__``.

This distinction is useful to support both data exchange via DLPack on a
buffer and (b) dtypes like variable-length strings which do not have a
fixed number of bytes per element.
c               ó$   € V ^8„  d   QhRRRRRR/# )é   Úxz	pa.BufferÚ
allow_copyÚboolÚreturnÚNoner   )Úformats   "r   Ú__annotate__Ú_PyArrowBuffer.__annotate__4   s!   € ÷ ñ ˜)ð °ð Àñ r   c                ó   € Wn         R# )z
Handle PyArrow Buffers.
N©Ú_x)Úselfr   r   s   &&&r   Ú__init__Ú_PyArrowBuffer.__init__4   s	   € ð Žr   c               ó   € V ^8„  d   QhRR/# ©r   r   Úintr   )r    s   "r   r!   r"   ;   s   € ÷ ñ ˜ñ r   c                ó.   € V P                   P                  # )z
Buffer size in bytes.
)r%   Úsize©r&   s   &r   ÚbufsizeÚ_PyArrowBuffer.bufsize:   s   € ð
 �w‰w�|‰|Ðr   c               ó   € V ^8„  d   QhRR/# r*   r   )r    s   "r   r!   r"   B   s   € ÷ ñ �Sñ r   c                ó.   € V P                   P                  # )z/
Pointer to start of the buffer as an integer.
)r%   Úaddressr.   s   &r   ÚptrÚ_PyArrowBuffer.ptrA   s   € ð
 �w‰w�‰Ðr   c                ó   € \        R4      h)aE  
Produce DLPack capsule (see array API standard).

Raises:
    - TypeError : if the buffer contains unsupported dtypes.
    - NotImplementedError : if DLPack support is not implemented

Useful to have to connect to array libraries. Support optional because
it's not completely trivial to implement for a Python-only library.
Ú
__dlpack__)ÚNotImplementedErrorr.   s   &r   r7   Ú_PyArrowBuffer.__dlpack__H   s   € ô " ,Ó/Ð/r   c               ó   € V ^8„  d   QhRR/# )r   r   z#tuple[DlpackDeviceType, int | None]r   )r    s   "r   r!   r"   U   s   € ÷ 	;ñ 	;Ð#Fñ 	;r   c                ót   € V P                   P                  '       d   \        P                  R3# \	        R4      h)z¦
Device type and device ID for where the data in the buffer resides.
Uses device type codes matching DLPack.
Note: must be implemented even if ``__dlpack__`` is not.
NÚ__dlpack_device__)r%   Úis_cpur   r   r8   r.   s   &r   r<   Ú _PyArrowBuffer.__dlpack_device__U   s.   € ð �7‰7�>�>ˆ>Ü$×(Ñ(¨$Ð/Ð/ä%Ð&9Ó:Ð:r   c               ó   € V ^8„  d   QhRR/# )r   r   Ústrr   )r    s   "r   r!   r"   `   s   € ÷ 
ñ 
˜#ñ 
r   c           
     	ó¦   € R \        RV P                  RV P                  RV P                  4       ^ ,          P                  /4      ,           R,           # )zPyArrowBuffer(r/   r4   ÚdeviceÚ))r@   r/   r4   r<   Únamer.   s   &r   Ú__repr__Ú_PyArrowBuffer.__repr__`   sQ   € àÜà˜tŸ|™|Ø˜4Ÿ8™8Ø˜d×4Ñ4Ó6°qÕ9×>Ñ>ðóõð õð
	
r   r$   N)T)r   r   r	   r
   r   r'   Úpropertyr/   r4   r7   r<   rE   r   r   r   r   r   r   %   sH   † ñ÷ð ôó ðð ôó ðò0õ	;÷
ñ 
r   r   )Ú
__future__r   ÚenumÚpyarrowÚpaÚIntEnumr   r   r   r   r   Ú<module>rM      s,   ðõ$ #Û ã ô
�t—|‘|ô 
÷F
ó F
r   