/opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/__pycache__/pack.cpython-311.pyc (47770B)
§
†Ðÿ„¾’ã ó¤ — d Z ddlZddlmZmZmZmZ ddlmZm Z m
Z
mZmZ ddl
mZmZmZmZmZmZmZmZmZmZmZ ddlmZ n# e$ r Y nw xY wddlmZmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z(m)Z) dd l*m+Z+ dd
l,m-Z- ddl.m/Z/ ddl0Z0ddl1Z1ddl2Z2ddl3Z3dZ4d
„ Z5dd„Z6 G d„ d¦ « Z7 G d„ de ¦ « Z8 G d„ de ¦ « Z9 G d„ de ¦ « Z:dS )z3Contains PackIndexFile and PackFile implementationsé N)Ú BadObjectÚAmbiguousObjectNameÚUnsupportedOperationÚ
ParseError)ÚmmanÚ LazyMixinÚunpack_fromÚ
bin_to_hexÚbyte_ord)Úcreate_pack_object_headerÚpack_object_header_infoÚis_equal_canonical_shaÚtype_id_to_type_mapÚwrite_objectÚstream_copyÚ
chunk_sizeÚdelta_typesÚ OFS_DELTAÚ REF_DELTAÚmsb_size©ÚPackIndexFile_sha_to_index)ÚOInfoÚOStreamÚ OPackInfoÚOPackStreamÚODeltaStreamÚODeltaPackInfoÚODeltaPackStream)ÚDecompressMemMapReaderÚDeltaApplyReaderÚ
Sha1WriterÚ
NullStreamÚFlexibleSha1Writer)Úpack)Úcrc32)Ú NULL_BYTE)Ú
PackIndexFileÚPackFileÚ
PackEntityc ój — | |¦ « ¦ « }t |¦ « \ }}}d}d}|t k rZ|} t || ¦ « }
| dz
} |
dz }|
dz r/t || ¦ « }
| dz
} |dz
}|dz |
dz z }|
dz °/|}| }n|t
k r|dz }|||… }n|}||z }|rDt
||d… d|¦ « }
|€|t ||||
¦ « fS |t |||||
¦ « fS |€|t |||¦ « fS |t ||||¦ « fS )a&
:return: Tuple(abs_data_offset, PackInfo|PackStream)
an object of the correct type according to the type_id of the object.
If as_stream is True, the object will contain a stream, allowing the
data to be read decompressed.
:param data: random accessible data containing all required information
:parma offset: offset in to the data at which the object information is located
:param as_stream: if True, a stream object will be returned that can read
the data, otherwise you receive an info object onlyNé é é€ é é F)Ú
use_regionÚbufferr
r r r r r r r r )ÚcursorÚoffsetÚ as_streamÚdataÚtype_idÚuncomp_sizeÚdata_rela_offsetÚtotal_rela_offsetÚ
delta_infoÚiÚcÚdelta_offsetÚabs_data_offsetÚstreams ú\/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/gitdb/pack.pyÚpack_object_atrB L s¯ € ð ×Ò˜VÑ$Ô$×+Ò+Ñ-Ô-€DÝ-DÀTÑ-JÔ-JÑ*€Gˆ[Ð*ØÐØ€Jð •)ÒÐØˆÝ�T˜!”WÑÔˆØ ˆQ‰ˆØ˜4‘xˆØ�$‰hð <ݘ˜aœÑ!Ô!ˆAØ
�‰FˆAؘAшLØ(¨AÑ-°!°d±(Ñ;ˆLð �$‰hð <ð "ˆ
ØÐÐà •IÒ Ð Ø,¨rÑ1ÐØÐ*Ð+<Ð<Ô=ˆ
ˆ
ð -ÐàÐ0Ñ0€OØð
]Ý'¨Ð->Ð-?Ð-?Ô(@À%ÈÑUÔUˆØÐØ"¥K°¸ÀÈfÑ$UÔ$UÐUÐUà"Õ$4°V¸WÀkÐS]Ð_eÑ$fÔ$fÐfÐfàÐØ"¥I¨f°g¸{Ñ$KÔ$KÐKÐKà"¥N°6¸7ÀKÐQ[Ñ$\Ô$\Ð\Ð\ó c ó° — d}d}|du}d}|r|} | t ¦ « }|t |¦ « z
}| |¦ « } |t | ¦ « z
} || ¦ « |rt | |¦ « }t |¦ « t k rnŒ€| ¦ « } |t | ¦ « z
} || ¦ « |rt | |¦ « }|||fS )a’ Copy a stream as read from read function, zip it, and write the result.
Count the number of written bytes and return it
:param base_crc: if not None, the crc will be the base for all compressed data
we consecutively write and generate a crc32 from. If None, no crc will be generated
:return: tuple(no bytes read, no bytes written, crc32) crc might be 0 if base_crc
was falser N)r ÚlenÚcompressr&