|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, indexpath) |
| def | close (self) |
| def | version (self) |
| def | size (self) |
| def | path (self) |
| def | packfile_checksum (self) |
| def | indexfile_checksum (self) |
| def | offsets (self) |
| def | sha_to_index (self, sha) |
| def | partial_sha_to_index (self, partial_bin_sha, canonical_length) |
| def | sha_to_index (self, sha) |
Public Member Functions inherited from LazyMixin | |
| def | __getattr__ (self, attr) |
Static Public Attributes | |
| index_v2_signature | |
| index_version_default | |
A pack index provides offsets into the corresponding pack, allowing to find locations for offsets faster.
| def __init__ | ( | self, | |
| indexpath | |||
| ) |
| def close | ( | self | ) |
| def indexfile_checksum | ( | self | ) |
:return: 20 byte sha representing the sha1 hash of this index file
| def offsets | ( | self | ) |
:return: sequence of all offsets in the order in which they were written **Note:** return value can be random accessed, but may be immmutable
| def packfile_checksum | ( | self | ) |
:return: 20 byte sha representing the sha1 hash of the pack file
| def partial_sha_to_index | ( | self, | |
| partial_bin_sha, | |||
| canonical_length | |||
| ) |
:return: index as in `sha_to_index` or None if the sha was not found in this
index file
:param partial_bin_sha: an at least two bytes of a partial binary sha as bytes
:param canonical_length: length of the original hexadecimal representation of the
given partial binary sha
:raise AmbiguousObjectName:
| def path | ( | self | ) |
:return: path to the packindexfile
| def sha_to_index | ( | self, | |
| sha | |||
| ) |
:return: index usable with the ``offset`` or ``entry`` method, or None
if the sha was not found in this pack index
:param sha: 20 byte sha to lookup
| def sha_to_index | ( | self, | |
| sha | |||
| ) |
| def size | ( | self | ) |
:return: amount of objects referred to by this index
| def version | ( | self | ) |
|
static |
|
static |