/opt/cloudlinux/venv/lib/python3.11/site-packages/smmap/__pycache__
NameSizeModeActions
buf.cpython-311.pyc74880644editdlrm
mman.cpython-311.pyc268330644editdlrm
util.cpython-311.pyc108600644editdlrm
__init__.cpython-311.pyc7940644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/smmap/__pycache__/util.cpython-311.pyc (10860B)
§ 4|ÂŒ ‚Opãóš—dZddlZddlZddlmZmZddlmZgd¢Zd„Zd„ZGd„d ¦«Z Gd „d ¦«Z Gd „d e ¦«Z dS)zlModule containing a memory memory manager which provides a sliding window on a number of memory mapped fileséN)ÚmmapÚ ACCESS_READ©ÚALLOCATIONGRANULARITY)Ú align_to_mmapÚ is_64_bitÚ MapWindowÚ MapRegionÚ MapRegionListrcóN—|tztz}|r||kr |tz }|S)a= Align the given integer number to the closest page offset, which usually is 4096 bytes. :param round_up: if True, the next higher multiple of page size is used, otherwise the lower page_size will be used (i.e. if True, 1 becomes 4096, otherwise it becomes 0) :return: num rounded to closest pager)ÚnumÚround_upÚress ú\/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/smmap/util.pyrrs5€ð Õ'Ñ 'Õ+@Ñ @€CØð%�S˜C’Z�ZØ Õ$Ñ$ˆà €Jócó"—tjdkS)zO:return: True if the system is 64 bit. Otherwise it can be assumed to be 32 bitlÿÿ)ÚsysÚmaxsize©rrrrs€å Œ;˜Ò &Ð&rcóP—eZdZdZdZd„Zd„Zed„¦«Zd„Z d„Z d„Z d „Z d S) r zWUtility type which is used to snap windows towards each other, and to adjust their size©ÚofsÚsizecó"—||_||_dS©Nr)ÚselfÚoffsetrs rÚ__init__zMapWindow.__init__-s€ØˆŒØˆŒ ˆ ˆ rcó$—d|j|jfzS)NzMapWindow(%i, %i)r©rs rÚ__repr__zMapWindow.__repr__1s€Ø" d¤h°´ Ð%:Ñ:Ð:rcóH—||j| ¦«¦«S)z!:return: new window from a region©Ú_br)ÚclsÚregions rÚ from_regionzMapWindow.from_region4s €ðˆs�6”9˜fŸkšk™mœmÑ,Ô,Ð,rcó —|j|jzSrrr s rÚofs_endzMapWindow.ofs_end9s€ØŒx˜$œ)Ñ#Ð#rcó¢—t|jd¦«}|xj|j|z z c_||_t|jd¦«|_dS)zÚlenÚstrÚcloseÚincrement_client_count) rÚ path_or_fdrrÚflagsÚfdÚkwargsÚcorrected_sizeÚsizeofsÚ actual_sizes rrzMapRegion.__init__cs/€ðˆŒØˆŒ ؈Œå �j¥#Ñ &Ô &ð W؈BˆB唘¥R¤[µ7½2¸zÈ1Ñ3MÔ3MÑ%MÐPUÑ%UÑVÔVˆBð Ý¥°SÐ9Ñ9Ô9ˆFØ!ˆN؈Gõ �bœh r™lœlÔ2°WÑ<¸nÑMÔMˆKݘB  Ð6Ð6¨vÐ6Ð6ˆDŒHõ˜TœX™œˆDŒJå˜*¥cÑ*Ô*ð Ý”˜‘ ” � øøõ˜*¥cÑ*Ô*ð Ý”˜‘ ” � � ð øøøð ×#Ò#Ñ%Ô%Ð%Ð%Ð%s Á(A0DÄ,D.có>—d|j| ¦«fzS)NzMapRegion<%i, %i>r#r s rr!zMapRegion.__repr__Šs€Ø" d¤g¨t¯yªy©{¬{Ð%;Ñ;Ð;rcó—|jS)z':return: a buffer containing the memory©r>r s rÚbufferzMapRegion.buffer�ó €àŒxˆrcó—|jS)z+:return: a memory map containing the memoryr[r s rÚmapz MapRegion.map“r]rcó—|jS)z>:return: absolute byte offset to the first byte of the mapping)r$r s rÚ ofs_beginzMapRegion.ofs_begin—s €àŒwˆrcó—|jS)z1:return: total size of the mapped region in bytes)r@r s rrzMapRegion.size›s €àŒzÐrcó —|j|jzS)zE:return: Absolute offset to one byte beyond the mapping into the file©r$r@r s rr)zMapRegion.ofs_endŸs€àŒw˜œÑ#Ð#rcóF—|j|cxko|j|jzkncS)zB:return: True if the given offset can be read in our mapped regionrd©rrs rÚ includes_ofszMapRegion.includes_ofs£s/€àŒw˜#Ð4Ð4Ò4Ð4 ¤¨$¬*Ñ 4Ò4Ð4Ð4Ð4Ð4rcó—|jS)z6:return: number of clients currently using this region)r?r s rÚ client_countzMapRegion.client_count§r]rr+có¼—|xj|z c_|jdksJd|jz¦«‚| ¦«dkr| ¦«dSdS)zîAdjust the usage count by the given positive or negative offset. If usage count equals 0, we will auto-release our resources :return: True if we released resources, False otherwise. In the latter case, we can still be usedéÿÿÿÿzrPr s rrlzMapRegion.release¹s€à Œ�ŠÑÔÐÐÐrN)r)r+)r7r8r9r:r;rr!r\r_rarr)rgrirQrlrrrr r Ssက€€€ðFðFððð€Ið%&ð%&ð%&ð%&ðN<ð<ð<ð ðððððððððððð$ð$ð$ð5ð5ð5ðððð ð ð ð ðððððrr có8‡—eZdZdZdZˆfd„Zd„Zd„Zd„ZˆxZ S)r zFList of MapRegion instances associating a path with a list of regions.©Ú _path_or_fdÚ _file_sizecóF•—t¦« |¦«Sr)ÚsuperÚ__new__)r%ÚpathÚ __class__s €rrtzMapRegionList.__new__Èsø€Ý‰wŒw�Š˜sÑ#Ô#Ð#rcó"—||_d|_dSrro)rrRs rrzMapRegionList.__init__Ës€Ø%ˆÔ؈Œˆˆrcó—|jS)z3:return: path or file descriptor we are attached to)rpr s rrRzMapRegionList.path_or_fdÏs €àÔÐrcóà—|j€at|jt¦«r$t j|j¦«j|_n#t j|j¦«j|_|jS)z :return: size of file we manager)rqrErprOrGÚstatrMrLr s rÚ file_sizezMapRegionList.file_sizeÓsZ€à Œ?Ð "ݘ$Ô*­CÑ0Ô0ð EÝ"$¤'¨$Ô*:Ñ";Ô";Ô"C�”�å"$¤(¨4Ô+;Ñ"<Ô"<Ô"D�”ðŒÐr) r7r8r9r:r;rtrrRr{Ú __classcell__)rvs@rr r Àsrø€€€€€àPÐPð€Ið $ð$ð$ð$ð$ðððð ð ð ð ð ð ð ð ð ð rr ) r:rGrrrrÚ__all__rrr r Úlistr rrrúrsðØrÐrØ € € € Ø € € € à"Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ø&Ð&Ð&Ð&Ð&Ð&ð Oð Oð O€ð ð ð ð'ð'ð'ð+Mð+Mð+Mð+Mð+Mñ+Mô+Mð+Mð\hðhðhðhðhñhôhðhðZðððð�Dñôðððr