OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | IndexWriter |
class | PackEntity |
class | PackFile |
class | PackIndexFile |
Functions | |
def | pack_object_at (cursor, offset, as_stream) |
def | write_stream_to_pack (read, write, zstream, base_crc=None) |
def gitdb.pack.pack_object_at | ( | cursor, | |
offset, | |||
as_stream | |||
) |
: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 only
def gitdb.pack.write_stream_to_pack | ( | read, | |
write, | |||
zstream, | |||
base_crc = None |
|||
) |
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 false