class documentation
class SwiftPackReader(object):
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 internally. The reader will read from Swift a specified amount of data to complete its internal buffer. chunk_length specify 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 | read |
Read the checksum from the pack |
Method | seek |
Seek to a specified offset |
Instance Variable | base |
Undocumented |
Instance Variable | buff |
Undocumented |
Instance Variable | buff |
Undocumented |
Instance Variable | filename |
Undocumented |
Instance Variable | offset |
Undocumented |
Instance Variable | pack |
Undocumented |
Instance Variable | scon |
Undocumented |
Method | _read |
Undocumented |
Initialize a SwiftPackReader
Parameters | |
scon | a SwiftConnector instance |
filename | the pack filename |
pack | The size of the pack object |