Exemplo n.º 1
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(self, None, "root", stream, None,
                                   stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)
     if self.ENDIAN_CHECK:
         if self["endian"].value == b"\xFF\xFE":
             self.endian = BIG_ENDIAN
         elif self["endian"].value == b"\xFE\xFF":
             self.endian = LITTLE_ENDIAN
         else:
             raise ParserError("OLE2: Invalid endian value")
Exemplo n.º 2
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(self, None, "root", stream, None,
                                   stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)
Exemplo n.º 3
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(
         self, None, "root", stream, None, stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)
Exemplo n.º 4
0
 def __init__(self, stream, **args):
     MachoFileBase.__init__(self, None, "root", stream, None,
                            stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)