コード例 #1
0
ファイル: test_parser.py プロジェクト: mgaitan/yaswfp
 def test_encodedu32_several(self, _a, _b):
     parser = SWFParser(io.BytesIO(b'\x8c\xac\x29'))
     # compose: 0101001 0101100 0001100
     self.assertEqual(parser._get_struct_encodedu32(), 677388)
コード例 #2
0
 def test_encodedu32_several(self, _a, _b):
     parser = SWFParser(io.BytesIO(b'\x8c\xac\x29'))
     # compose: 0101001 0101100 0001100
     self.assertEqual(parser._get_struct_encodedu32(), 677388)
コード例 #3
0
ファイル: test_parser.py プロジェクト: mgaitan/yaswfp
 def test_encodedu32_simple(self, _a, _b):
     parser = SWFParser(io.BytesIO(b'\x3a'))
     self.assertEqual(parser._get_struct_encodedu32(), 58)
コード例 #4
0
 def test_encodedu32_simple(self, _a, _b):
     parser = SWFParser(io.BytesIO(b'\x3a'))
     self.assertEqual(parser._get_struct_encodedu32(), 58)