Пример #1
0
 def arch(self):
     """Basic block architecture (read-only)"""
     # The arch for a BasicBlock isn't going to change so just cache
     # it the first time we need it
     if self._arch is not None:
         return self._arch
     arch = core.BNGetBasicBlockArchitecture(self.handle)
     if arch is None:
         return None
     self._arch = architecture.Architecture(arch)
     return self._arch
Пример #2
0
	def arch(self):
		"""Basic block architecture (read-only)"""
		arch = core.BNGetBasicBlockArchitecture(self.handle)
		if arch is None:
			return None
		return architecture.Architecture(arch)