Esempio 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")
Esempio n. 2
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(self, None, "root", stream, None,
                                   stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)
Esempio n. 3
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(
         self, None, "root", stream, None, stream.askSize(self))
     if self.stream.readBytes(0, 2) == b"MM":
         self.endian = BIG_ENDIAN
     Parser.__init__(self, stream, **args)
Esempio n. 4
0
 def __init__(self, stream, **args):
     RootSeekableFieldSet.__init__(
         self, None, "root", stream, None, stream.askSize(self))
     HachoirParser.__init__(self, stream, **args)