+
    ˜°³j{  ã                   óf   € ^ RI t^ RIHt ^ RIHt ^ RIt^ RIHt Rt ! R R4      t	 ! R R	4      t
R# )
é    N)Úglob)Úcast)ÚStoragez.data/serialization_idc                   ó,   a € ] tR t^t o R tR tRtV tR# )Ú_HasStoragec                ó   € Wn         R # ©N©Ú_storage)ÚselfÚstorages   &&Ú`/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/package/_directory_reader.pyÚ__init__Ú_HasStorage.__init__   s   € ØŽó    c                ó   € V P                   # r	   r
   ©r   s   &r   r   Ú_HasStorage.storage   s   € Ø�}‰}Ðr   r
   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € ò ÷ð r   r   c                   óH   a € ] tR t^t o RtR tR tR tR tR t	R t
RtV tR	# )
ÚDirectoryReaderaZ  
Class to allow PackageImporter to operate on unzipped packages. Methods
copy the behavior of the internal PyTorchFileReader class (which is used for
accessing packages in all other cases).

N.B.: ScriptObjects are not depickleable or accessible via this DirectoryReader
class due to ScriptObjects requiring an actual PyTorchFileReader instance.
c                ó   € Wn         R # r	   ©Ú	directory)r   r!   s   &&r   r   ÚDirectoryReader.__init__    s   € Ø"Žr   c                óª   € V P                    R V 2p\        VR4      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)Ú/ÚrbN)r!   ÚopenÚread)r   ÚnameÚfilenameÚfs   &&  r   Ú
get_recordÚDirectoryReader.get_record#   s>   € Ø—n‘nÐ% Q t fÐ-ˆÜ�(˜D×!Ô! QØ—6‘6“8÷ "×!×!Ó!ús   ¦AÁA	c                óâ   € V P                    R V 2p\        P                  P                  V4      V,          p\	        \
        \        P                  4      p\        VP                  WER7      4      # )r$   )r)   Únbytes)	r!   ÚtorchÚ_utilsÚ_element_sizer   r   ÚUntypedStorager   Ú	from_file)r   r(   ÚnumelÚdtyper)   r.   r   s   &&&&   r   Úget_storage_from_recordÚ'DirectoryReader.get_storage_from_record(   s[   € Ø—n‘nÐ% Q t fÐ-ˆÜ—‘×+Ñ+¨EÓ2°UÕ:ˆÜ”w¤× 4Ñ 4Ó5ˆÜ˜7×,Ñ,°hÐ,ÓNÓOÐOr   c                ó”   € \         P                  P                  V P                  V4      p\         P                  P	                  V4      # r	   )ÚosÚpathÚjoinr!   Úisfile)r   r:   Ú	full_paths   && r   Ú
has_recordÚDirectoryReader.has_record.   s-   € Ü—G‘G—L‘L §¡°Ó6ˆ	Ü�w‰w�~‰~˜iÓ(Ð(r   c                óê   € \        V P                   R 2RR7       Uu. uFI  p\        P                  P	                  V4      '       d   K*  V\        V P                  4      ^,           R NKK  	  ppV# u upi )z/**T)Ú	recursiveN)r   r!   r9   r:   ÚisdirÚlen)r   r)   Úfiless   &  r   Úget_all_recordsÚDirectoryReader.get_all_records2   sk   € ô
 ! D§N¡NÐ#3°3Ð!7À4ÕHó
áH�Ü—7‘7—=‘= ×*ô 0ˆH”S˜Ÿ™Ó(¨1Õ,Ð.Ó/ÙHð 	ð 
ð
 ˆùò
s   �'A0Á	#A0c                óf   € V P                  \        4      '       d   V P                  \        4      # R # )Ú )r>   Ú __serialization_id_record_name__r+   r   s   &r   Úserialization_idÚ DirectoryReader.serialization_id<   s'   € ð �?‰?Ô;×<Ò<Ø—?‘?Ô#CÓDÐDár   r    N)r   r   r   r   Ú__doc__r   r+   r6   r>   rE   rJ   r   r   r   s   @r   r   r      s.   ø‡ € ñò#òò
Pò)ò÷ð r   r   )Úos.pathr9   r   Útypingr   r/   Útorch.typesr   rI   r   r   © r   r   Ú<module>rQ      s0   ðã Ý Ý ã Ý ð $<Ð  ÷ñ ÷,ó ,r   