|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | rbound (self) |
| def | lbound (self) |
| def | size (self) |
| def | apply (self, bbuf, write) |
| def | compress (self) |
| def | check_integrity (self, target_size=-1) |
List with special functionality to deal with DeltaChunks. There are two types of lists we represent. The one was created bottom-up, working towards the latest delta, the other kind was created top-down, working from the latest delta down to the earliest ancestor. This attribute is queryable after all processing with is_reversed.
| def apply | ( | self, | |
| bbuf, | |||
| write | |||
| ) |
Only used by public clients, internally we only use the global routines for performance
| def check_integrity | ( | self, | |
target_size = -1 |
|||
| ) |
Verify the list has non-overlapping chunks only, and the total size matches target_size :param target_size: if not -1, the total size of the chain must be target_size :raise AssertionError: if the size doen't match
| def compress | ( | self | ) |
Alter the list to reduce the amount of nodes. Currently we concatenate add-chunks :return: self
| def lbound | ( | self | ) |
:return: leftmost byte at which this chunklist starts
| def rbound | ( | self | ) |
:return: rightmost extend in bytes, absolute
| def size | ( | self | ) |
:return: size of bytes as measured by our delta chunks