/opt/cloudlinux/venv/lib/python3.11/site-packages/smmap/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/smmap/__pycache__/util.cpython-311.pyc (10860B)
§
4|Œ
‚Opã óš — d Z ddlZddlZddlmZmZ ddlmZ g d¢Zd„ Zd„ Z G d„ d ¦ « Z G d
„ d¦ « Z
G d„ d
e¦ « ZdS )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Ú
MapRegionListr c óN — | t z t z }|r|| k r
|t z
}|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.pyr r s5 € ð Õ'Ñ'Õ+@Ñ
@€CØð %�S˜C’Z�ZØÕ$Ñ$ˆà€Jó c ó" — t j dk S )zO:return: True if the system is 64 bit. Otherwise it can be assumed to be 32 bitl ÿÿ )ÚsysÚmaxsize© r r r r s € åŒ;˜Ò&Ð&r c óP — e Zd ZdZdZd„ Zd„ Zed„ ¦ « Zd„ Z d„ Z
d„ Zd „ Zd
S )r zWUtility type which is used to snap windows towards each other, and to adjust their size©ÚofsÚsizec ó" — || _ || _ d S ©Nr )ÚselfÚoffsetr s r Ú__init__zMapWindow.__init__- s € ؈ŒØˆŒ ˆ ˆ r c ó$ — d| j | j fz S )NzMapWindow(%i, %i)r ©r s r Ú__repr__zMapWindow.__repr__1 s € Ø" d¤h°´ Ð%:Ñ:Ð:r c óH — | |j | ¦ « ¦ « S )z!:return: new window from a region©Ú_br )ÚclsÚregions r Úfrom_regionzMapWindow.from_region4 s € ð ˆs�6”9˜fŸkšk™mœmÑ,Ô,Ð,r c ó — | j | j z S r r r s r Úofs_endzMapWindow.ofs_end9 s € ØŒx˜$œ)Ñ#Ð#r c ó¢ — t | j d¦ « }| xj | j |z
z
c_ || _ t | j d¦ « | _ dS )z