예제 #1
0
파일: structures.py 프로젝트: saif1413/L4OS
 def _set_type(self, ph_type):
     """Set the kind of segment this header describes."""
     assert is_integer(ph_type)
     self._p_type = ElfPhType(ph_type)
예제 #2
0
파일: structures.py 프로젝트: saif1413/L4OS
 def _set_machine(self, machine):
     """Set the machine architecture."""
     assert is_integer(machine)
     self._e_machine = ElfMachine(machine)
예제 #3
0
파일: structures.py 프로젝트: saif1413/L4OS
 def _set_version(self, version):
     """Set the version field."""
     assert is_integer(version)
     self._e_version = ElfVersion(version)
예제 #4
0
 def test_isinteger(self):
     self.assertEqual(is_integer(0), True)
     self.assertEqual(is_integer(37L), True)
     self.assertEqual(is_integer(None), False)
예제 #5
0
파일: structures.py 프로젝트: saif1413/L4OS
 def _set_type(self, elf_type):
     """Set the machine architecture."""
     assert is_integer(elf_type)
     self._e_type = ElfType(elf_type)
예제 #6
0
 def _set_symdx(self, index):
     """Set the symbol table index."""
     assert is_integer(index)
     self.r_info = (index << 8) | (self.r_info & 0xff)
예제 #7
0
 def _set_type(self, reloc_type):
     """Set the relocation type."""
     assert is_integer(reloc_type)
     self.r_info = (self.r_info & 0xffffff00) | reloc_type
예제 #8
0
파일: structures.py 프로젝트: BruceYi/okl4
 def _set_type(self, ph_type):
     """Set the kind of segment this header describes."""
     assert is_integer(ph_type)
     self._p_type = ElfPhType(ph_type)
예제 #9
0
파일: structures.py 프로젝트: BruceYi/okl4
 def _set_version(self, version):
     """Set the version field."""
     assert is_integer(version)
     self._e_version = ElfVersion(version)
예제 #10
0
파일: structures.py 프로젝트: BruceYi/okl4
 def _set_machine(self, machine):
     """Set the machine architecture."""
     assert is_integer(machine)
     self._e_machine = ElfMachine(machine)
예제 #11
0
파일: structures.py 프로젝트: BruceYi/okl4
 def _set_type(self, elf_type):
     """Set the machine architecture."""
     assert is_integer(elf_type)
     self._e_type = ElfType(elf_type)
예제 #12
0
파일: test_util.py 프로젝트: BruceYi/okl4
 def test_isinteger(self):
     self.assertEqual(is_integer(0), True)
     self.assertEqual(is_integer(37L), True)
     self.assertEqual(is_integer(None), False)