| Function | apply_txdelta_handler |
Return a function that can be called repeatedly with txdelta windows. |
| Function | apply_txdelta_handler_chunks |
Return a function that can be called repeatedly with txdelta windows. |
| Function | apply_txdelta_window |
Apply a txdelta window to a buffer. |
| Function | decode_length |
Decode a length variable. |
| Function | encode_length |
Encode a length variable. |
| Function | pack_svndiff0 |
Pack a SVN diff file. |
| Function | pack_svndiff0_window |
Pack an individual window using svndiff0. |
| Function | pack_svndiff_instruction |
Pack a SVN diff instruction |
| Function | send_stream |
Send txdelta windows that create stream to handler |
| Function | txdelta_apply_ops |
Apply txdelta operations to a source view. |
| Function | unpack_svndiff0 |
Unpack a version 0 svndiff text. |
| Function | unpack_svndiff_instruction |
Unpack a SVN diff instruction |
| Constant | DELTA_WINDOW_SIZE |
Undocumented |
| Constant | MAX_ENCODED_INT_LEN |
Undocumented |
| Constant | SVNDIFF0_HEADER |
Undocumented |
| Constant | TXDELTA_INVALID |
Undocumented |
| Constant | TXDELTA_NEW |
Undocumented |
| Constant | TXDELTA_SOURCE |
Undocumented |
| Constant | TXDELTA_TARGET |
Undocumented |
| Variable | __author__ |
Undocumented |
| Parameters | |
| sbuf | Source buffer |
| target_stream | Target stream |
| Parameters | |
| source_chunks | Undocumented |
| target_chunks | Undocumented |
| sbuf | Source buffer |
| target_stream | Target stream |
| Parameters | |
| sbuf | Source buffer (as bytestring) |
| window | (sview_offset, sview_len, tview_len, src_ops, ops, new_data) |
| sview_offset | Offset of the source view |
| sview_len | Length of the source view |
| tview_len | Target view length |
| src_ops | Operations to apply to sview |
| ops | Ops to apply |
| new_data | Buffer with possible new data |
| Returns | |
| Target buffer | |
| Parameters | |
| text | Bytestring to decode |
| Returns | |
| Integer with actual length | |
| Parameters | |
| len | Length to encode |
| Returns | |
| String with encoded length | |
| Parameters | |
| windows | Iterator over diff windows |
| Returns | |
| text | |
| Parameters | |
| window | Window to pack |
| Returns | |
| Packed diff (as bytestring) | |
| Parameters | |
| diff_params | (action, offset, length) |
| action | Action |
| offset | Offset |
| length | Length |
| Returns | |
| encoded text | |
| Parameters | |
| stream | file-like object to read the file from |
| handler | txdelta window handler function |
| block_size | Undocumented |
| Returns | |
| MD5 hash over the stream | |
| Parameters | |
| src_ops | Source operations, ignored. |
| ops | List of operations (action, offset, length). |
| new_data | Buffer to fetch fragments with new data from |
| sview | Source data |
| Returns | |
| Result data | |
| Parameters | |
| text | Text to unpack. |
| Returns | |
| yields tuples with sview_offset, sview_len, tview_len, ops_len, ops, newdata | |