OpenQuizz
Une application de gestion des contenus pédagogiques
DeltaChunkList Class Reference
Inheritance diagram for DeltaChunkList:
Collaboration diagram for DeltaChunkList:

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)
 

Detailed Description

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.

Member Function Documentation

◆ apply()

def apply (   self,
  bbuf,
  write 
)
Only used by public clients, internally we only use the global routines
for performance

◆ check_integrity()

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

◆ compress()

def compress (   self)
Alter the list to reduce the amount of nodes. Currently we concatenate
add-chunks
:return: self

◆ lbound()

def lbound (   self)
:return: leftmost byte at which this chunklist starts

◆ rbound()

def rbound (   self)
:return: rightmost extend in bytes, absolute

◆ size()

def size (   self)
:return: size of bytes as measured by our delta chunks

The documentation for this class was generated from the following file: