The data contained in a packfile.

We use the SwiftPackReader to read bytes from packs stored in Swift using the Range header feature of Swift.

Method __init__ Initialize a SwiftPackReader
Method get_object_at Given an offset in to the packfile return the object that is there.
Method get_stored_checksum Return the expected checksum stored in this pack.
Method close Undocumented

Inherited from PackData:

Method filename Undocumented
Method path Undocumented
Class Method from_file Undocumented
Class Method from_path Undocumented
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __len__ Returns the number of objects in this pack.
Method calculate_checksum Calculate the checksum for this pack.
Method get_ref Get the object for a ref SHA, only looking in this pack.
Method resolve_object Resolve an object, possibly resolving deltas when necessary.
Method iterobjects Undocumented
Method iterentries Yield entries summarizing the contents of this pack.
Method sorted_entries Return entries in this pack, sorted by SHA.
Method create_index_v1 Create a version 1 file for this data file.
Method create_index_v2 Create a version 2 index file for this data file.
Method create_index Create an index file for this data file.
Method check Check the consistency of this pack.
Method get_compressed_data_at Given offset in the packfile return compressed data that is there.
Method _get_size Undocumented
Method _iter_unpacked Undocumented
def __init__(self, scon, filename):
Initialize a SwiftPackReader
Parametersscona SwiftConnector instance
filenamethe pack filename
def get_object_at(self, offset):

Given an offset in to the packfile return the object that is there.

Using the associated index the location of an object can be looked up, and then the packfile can be asked directly for that object using this function.

def get_stored_checksum(self):
Return the expected checksum stored in this pack.
def close(self):
Undocumented
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.