Version 1 Pack Index file.
Method __init__ Create a pack index object.
Method _unpack_entry Unpack the i-th entry in the index file.
Method _unpack_name Unpack the i-th name from the index file.
Method _unpack_offset Unpack the i-th object offset from the index file.
Method _unpack_crc32_checksum Unpack the crc32 checksum for the ith object from the index file.

Inherited from PackIndex (via FilePackIndex):

Method __ne__ Undocumented
Method __iter__ Iterate over the SHAs in this pack.
Method object_index Return the index in to the corresponding packfile for the object.
Method object_sha1 Return the SHA1 corresponding to the index in the pack file.
Method objects_sha1 Return the hex SHA1 over all the shas of all objects in this pack.

Inherited from PackIndex (via FilePackIndex):

Method __ne__ Undocumented
Method __iter__ Iterate over the SHAs in this pack.
Method object_index Return the index in to the corresponding packfile for the object.
Method object_sha1 Return the SHA1 corresponding to the index in the pack file.
Method objects_sha1 Return the hex SHA1 over all the shas of all objects in this pack.
def __init__(self, filename, file=None, contents=None, size=None):

Create a pack index object.

Provide it with the name of the index file to consider, and it will map it whenever required.

def _unpack_entry(self, i):
Unpack the i-th entry in the index file.
ReturnsTuple with object name (SHA), offset in pack file and CRC32 checksum (if known).
def _unpack_name(self, i):
Unpack the i-th name from the index file.
def _unpack_offset(self, i):
Unpack the i-th object offset from the index file.
def _unpack_crc32_checksum(self, i):
Unpack the crc32 checksum for the ith object from the index file.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.