class documentation
class DeltaChainIterator(object):
Known subclasses: dulwich.pack.PackIndexer
, dulwich.pack.PackInflater
, dulwich.tests.test_pack.TestPackIterator
Abstract iterator over pack data based on delta chains.
Each object in the pack is guaranteed to be inflated exactly once, regardless of how many objects reference it as a delta base. As a result, memory usage is proportional to the length of the longest delta chain.
Subclasses can override _result to define the result type of the iterator. By default, results are UnpackedObjects with the following members set:
- offset
- obj_type_num
- obj_chunks
- pack_type_num
- delta_base (for delta types)
- comp_chunks (if _include_comp is True)
- decomp_chunks
- decomp_len
- crc32 (if _compute_crc32 is True)
Class Method | for |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | ext |
Undocumented |
Method | record |
Undocumented |
Method | set |
Undocumented |
Method | _ensure |
Undocumented |
Method | _follow |
Undocumented |
Method | _resolve |
Undocumented |
Method | _result |
Undocumented |
Method | _walk |
Undocumented |
Method | _walk |
Undocumented |
Class Variable | _compute |
Undocumented |
Class Variable | _include |
Undocumented |
Instance Variable | _ext |
Undocumented |
Instance Variable | _file |
Undocumented |
Instance Variable | _full |
Undocumented |
Instance Variable | _pending |
Undocumented |
Instance Variable | _pending |
Undocumented |
Instance Variable | _resolve |
Undocumented |
Instance Variable | _shas |
Undocumented |
overridden in
dulwich.pack.PackIndexer
, dulwich.pack.PackInflater
, dulwich.tests.test_pack.TestPackIterator
Undocumented