o
    !wÖi  ã                   @   s   d dl Z dgZdd„ ZdS )é    NÚconvertToDirectBufferc                 C   s   d}t | ƒ}|j}t ||¡S )Na  Efficiently convert all array.array and numpy ndarray types, string and unicode to java.nio.Buffer objects. If the passed object is readonly (i.e. bytes or a readonly memoryview) the returned ByteBuffer will be a readonly Buffer object. Otherwise a writable Buffer is returned.)Ú
memoryviewÚreadonlyÚ_jpyper   )ÚobjÚ__doc__Úmemoryview_of_objÚro_view© r
   úF/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/jpype/nio.pyr      s   )r   Ú__all__r   r
   r
   r
   r   Ú<module>   s   