Exemplo n.º 1
0
 def __init__(self, parent, name, description=None):
     GenericInteger.__init__(self, parent, name, False, 8, description)
     i = GenericInteger.createValue(self)
     if i == 0:
         raise ParserError('Invalid integer length!')
     while i < 0x80:
         self._size += 8
         i <<= 1
Exemplo n.º 2
0
 def __init__(self, parent, name, description=None):
     GenericInteger.__init__(self, parent, name, False, 8, description)
     i = GenericInteger.createValue(self)
     if i == 0:
         raise ParserError('Invalid integer length!')
     while i < 0x80:
         self._size += 8
         i <<= 1
Exemplo n.º 3
0
 def __init__(self, parent, name, description=None):
     size = parent['/trailer/objectRefSize'].value * 8
     GenericInteger.__init__(self, parent, name, False, size, description)
Exemplo n.º 4
0
 def __init__(self, parent, name, description=None):
     size = parent['/trailer/objectRefSize'].value * 8
     GenericInteger.__init__(self, parent, name, False, size, description)