/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__/buf.cpython-311.pyc (7488B)
§  \goCÒåãó2—dZddlZdgZGd„d¦«ZdS)zCModule with a simple buffer implementation using the memory manageréNÚSlidingWindowMapBuffercóz—eZdZdZdZddejdfd„Zd„Zd„Z d„Z d „Z d „Z d „Z ddejdfd „Zd „Zd„ZdS)raA buffer like object which allows direct byte-wise object and slicing into memory of a mapped file. The mapping is controlled by the provided cursor. The buffer is relative, that is if you map an offset, index 0 will map to the first byte at the offset you used during initialization or begin_access **Note:** Although this type effectively hides the fact that there are mapped windows underneath, it can unfortunately not be used in any non-pure python method which needs a buffer or string)Ú_cÚ_sizeNrcój—||_|r'| ||||¦«std¦«‚dSdS)aeInitalize the instance to operate on the given cursor. :param cursor: if not None, the associated cursor to the file you want to access If None, you have call begin_access before using the buffer and provide a cursor :param offset: absolute offset in bytes :param size: the total size of the mapping. Defaults to the maximum possible size From that point on, the __len__ of the buffer will be the given size or the file size. If the size is larger than the mappable area, you can only access the actually available area, although the length of the buffer is reported to be your given size. Hence it is in your own interest to provide a proper size ! :param flags: Additional flags to be passed to os.open :raise ValueError: if the buffer could not achieve a valid statezJFailed to allocate the buffer - probably the given offset is out of boundsN)rÚ begin_accessÚ ValueError)ÚselfÚcursorÚoffsetÚsizeÚflagss ú[/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/smmap/buf.pyÚ__init__zSlidingWindowMapBuffer.__init__sW€ðˆŒØ ð k˜$×+Ò+¨F°F¸DÀ%ÑHÔHð kÝÐiÑjÔjÐ jð kð kð kð kócó.—| ¦«dS©N©Ú end_access©r s rÚ__del__zSlidingWindowMapBuffer.__del__(ó€Ø �ŠÑÔÐÐÐrcó—|Sr©rs rÚ __enter__z SlidingWindowMapBuffer.__enter__+s€Øˆ rcó.—| ¦«dSrr)r Úexc_typeÚ exc_valueÚ tracebacks rÚ__exit__zSlidingWindowMapBuffer.__exit__.rrcó—|jSr)rrs rÚ__len__zSlidingWindowMapBuffer.__len__1s €ØŒzÐrcóŒ—t|t¦«r)| |jpd|jp|j¦«S|j}| ¦«sJ‚|dkr |j|z}| |¦«s|  |d¦«|  ¦«||  ¦«z S)Nré) Ú isinstanceÚsliceÚ __getslice__ÚstartÚstoprrÚis_validÚ includes_ofsÚ use_regionÚbufferÚ ofs_begin)r ÚiÚcs rÚ __getitem__z"SlidingWindowMapBuffer.__getitem__4s°€Ý �a�Ñ Ô ð IØ×$Ò$ Q¤W \°°1´6Ð3G¸T¼ZÑHÔHÐ HØ ŒGˆØ�zŠz‰|Œ|ÐЈ|Ø ˆqŠ5ˆ5Ø” ˜Q‘ˆAØ�~Š~˜aÑ Ô ð Ø �LŠL˜˜AÑ Ô Ð à�xŠx‰zŒz˜!˜aŸkšk™mœmÑ+Ô,Ð,rcó4—|j}| ¦«sJ‚|dkr |j|z}|tjkr|j}|dkr |j|z}| ¦«|krN|| ¦«kr6| ¦«}| ¦«||z ||z …S||z }|}t¦«}|r§|  ||¦«| ¦«sJ‚| ¦«d|…}|t|¦«z }|t|¦«z}t|d¦«r|  ¦«}|  |¦«|°§t¦« |¦«S)NrÚtobytes)rr*rÚsysÚmaxsizer.Úofs_endr-Úlistr,ÚlenÚhasattrr3ÚappendÚbytesÚjoin) r r/Újr0ÚbÚlÚofsÚmdÚds rr'z#SlidingWindowMapBuffer.__getslice__@sv€Ø ŒGˆð�zŠz‰|Œ|ÐЈ|Ø ˆqŠ5ˆ5Ø” ˜Q‘ˆAØ •” Ò Ð Ø” ˆAØ ˆqŠ5ˆ5Ø” ˜Q‘ˆAØ �KŠK‰MŒM˜QÒ Ð  Q¨¯ª©¬¢_ _Ø— ’ ‘ ” ˆAØ—8’8‘:”:˜a !™e A¨¡E˜kÔ*Ð *à�A‘ˆA؈Cõ‘”ˆBØð Ø— ’ ˜S !Ñ$Ô$Ð$Ø—z’z‘|”|Ð#Ð#�|Ø—H’H‘J”J˜r ˜r”N�Ø•s˜1‘v”v‘ �Ø•S˜‘V”V‘ �õ˜1˜iÑ(Ô(ð$ØŸ š ™ œ �AØ— ’ ˜!‘ ” � ðð õ‘7”7—<’< Ñ#Ô#Ð #rcó<—|r||_|j�‹|j ¦«rr|j |||¦« ¦«}|r@||j ¦«kr|j ¦«|z }||_|SdS)aUCall this before the first use of this instance. The method was already called by the constructor in case sufficient information was provided. For more information no the parameters, see the __init__ method :param path: if cursor is None the existing one will be used. :return: True if the buffer can be usedNF)rÚ is_associatedr,r*Ú file_sizer)r r r r rÚress rrz#SlidingWindowMapBuffer.begin_accessds¡€ð ð ØˆDŒGð Œ7Ð  4¤7×#8Ò#8Ñ#:Ô#:Ð Ø”'×$Ò$ V¨T°5Ñ9Ô9×BÒBÑDÔDˆCØð "ð ˜$œ'×+Ò+Ñ-Ô-Ò-Ð-Øœ7×,Ò,Ñ.Ô.°Ñ7�Dà!�” àˆJàˆurcóX—d|_|j�|j ¦«dSdS)aCall this method once you are done using the instance. It is automatically called on destruction, and should be called just in time to allow system resources to be freed. Once you called end_access, you must call begin access before reusing this instance!rN)rrÚ unuse_regionrs rrz!SlidingWindowMapBuffer.end_access€s5€ð ˆŒ Ø Œ7Ð Ø ŒG× Ò Ñ "Ô "Ð "Ð "Ð "ð Ð rcó—|jS)zC:return: the currently set cursor which provides access to the data)rrs rr zSlidingWindowMapBuffer.cursor‹s €àŒwˆr)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú __slots__r4r5rrrr r"r1r'rrr rrrrrs䀀€€€ð ð ð€Ið #¨1°3´;Àaðkðkðkðkð"ðððððððððððð -ð -ð -ð $ð $ð $ðH#'¨q°s´{È!ððððð8#ð#ð#ðððððr)rMr4Ú__all__rrrrúrPsXðØIÐIØ € € € à #Ð $€ðFðFðFðFðFñFôFðFðFðFr