$52 GRAYBYTE WORDPRESS FILE MANAGER $38

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.85
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/db/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/db/__pycache__//mem.cpython-311.pyc
�

�|oi
���dZddlmZddlmZmZddlmZmZddl	m
Z
mZddlm
Z
mZddlmZdZGd	�d
ee��ZdS)z*Contains the MemoryDatabase implementation�)�
LooseObjectDB)�	ObjectDBR�	ObjectDBW)�OStream�IStream)�	BadObject�UnsupportedOperation)�ZippedStoreShaWriter�DecompressMemMapReader)�BytesIO)�MemoryDBc�R��eZdZdZ�fd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Z�xZ
S)r
a/A memory database stores everything to memory, providing fast IO and object
    retrieval. It should be used to buffer results and obtain SHAs before writing
    it to the actual physical storage, as it allows to query whether object already
    exists in the target storage before introducing actual IOc���t�����td��|_t	��|_dS)Nzpath/doesnt/matter)�super�__init__r�_db�dict�_cache)�self�	__class__s ��^/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/gitdb/db/mem.pyrzMemoryDB.__init__'s:���
�������� �!5�6�6����f�f�����c� �td���)Nz$MemoryDB's always stream into memory)r	)r�streams  r�set_ostreamzMemoryDB.set_ostream.s��"�#I�J�J�Jrc�~�t��}|j�|��|j�|��}|���|�d��t
|���d���}t|j	|j
|j|��|j|j	<|S)NrF)�close_on_deletion)
r
rr�store�close�seekr�getvaluer�binsha�type�sizer)r�istream�zstream�
decomp_streams    rrzMemoryDB.store1s���&�(�(������W�%�%�%��(�.�.��)�)���
�
�������Q����/�w�/?�/?�/A�/A�UZ�[�[�[�
�&-�g�n�g�l�G�L�Zg�&h�&h���G�N�#��rc��||jvS�N)r�r�shas  r�
has_objectzMemoryDB.has_object@s���d�k�!�!rc�,�|�|��Sr))rr*s  r�infoz
MemoryDB.infoCs���{�{�3���rc��	|j|}|j�d��|S#t$r}t	|��|�d}~wwxYw)Nr)rrr �KeyErrorr)rr+�ostream�es    rrzMemoryDB.streamGs[��	(��k�#�&�G��N����"�"�"��N���	(�	(�	(��C�.�.�a�'�����	(���s�(+�
A
�A�A
c�*�t|j��Sr))�lenr�rs rr$z
MemoryDB.sizeQs���4�;���rc�4�|j���Sr))r�keysr5s r�sha_iterzMemoryDB.sha_iterTs���{���!�!�!rc�"�d}|D]�}|�|��r�|�|��}t|j�����}t	|j|j||��}|�|��|dz
}��|S)arCopy the streams as identified by sha's yielded by sha_iter into the given odb
        The streams will be copied directly
        **Note:** the object will only be written if it did not exist in the target db

        :return: amount of streams actually copied into odb. If smaller than the amount
            of input shas, one or more objects did already exist in odbr�)r,rr�datarr#r$r)rr8�odb�countr+r1�sior%s        r�stream_copyzMemoryDB.stream_copyXs������	�	�C��~�~�c�"�"�
���k�k�#�&�&�G��'�.�-�-�/�/�0�0�C��g�l�G�L�#�s�C�C�G��I�I�g�����Q�J�E�E��r)�__name__�
__module__�__qualname__�__doc__rrrr,r.rr$r8r?�
__classcell__)rs@rr
r
 s��������A�A�
�����K�K�K�
�
�
�"�"�"� � � �(�(�(� � � �"�"�"�������rr
N)rC�gitdb.db.looser�
gitdb.db.baserr�
gitdb.baserr�	gitdb.excrr	�gitdb.streamr
r�ior�__all__r
�rr�<module>rMs��
1�0�(�(�(�(�(�(���������
��������
��������
��������
������
��M�M�M�M�M�y�)�M�M�M�M�Mr


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.cpython-311.pyc
0.411 KB
20 Jan 2026 1.01 PM
root / root
0644
base.cpython-311.pyc
13.257 KB
20 Jan 2026 1.01 PM
root / root
0644
git.cpython-311.pyc
3.626 KB
20 Jan 2026 1.01 PM
root / root
0644
loose.cpython-311.pyc
9.908 KB
20 Jan 2026 1.01 PM
root / root
0644
mem.cpython-311.pyc
4.969 KB
20 Jan 2026 1.01 PM
root / root
0644
pack.cpython-311.pyc
9.331 KB
20 Jan 2026 1.01 PM
root / root
0644
ref.cpython-311.pyc
4.079 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF