Exemple #1
0
 def resizer(length):
     if length & 7:
         raise SizeofError("size must be a multiple of 8", length)
     return length >> 3
Exemple #2
0
 def _sizeof(self, context):
     raise SizeofError("can't calculate size")
Exemple #3
0
 def _sizeof(self, context):
     # return self.lengthfield._sizeof(None) + sum(self.subcon._sizeof(element) for element in context)
     raise SizeofError("cannot calculate size")