dulwich.contrib.swift.SwiftPackReader(object)
class documentationdulwich.contrib.swift
(View In Hierarchy)
A SwiftPackReader that mimic read and sync method
The reader allows to read a specified amount of bytes from a given offset of a Swift object. A read offset is kept internaly. The reader will read from Swift a specified amount of data to complete its internal buffer. chunk_length specifiy the amount of data to read from Swift.
Method | __init__ | Initialize a SwiftPackReader |
Method | read | Read a specified amount of Bytes form the pack object |
Method | seek | Seek to a specified offset |
Method | read_checksum | Read the checksum from the pack |
Method | _read | Undocumented |
Parameters | scon | a SwiftConnector instance |
filename | the pack filename | |
pack_length | The size of the pack object |