MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / calling_conventions

Method calling_conventions

python/platform.py:450–464  ·  view source on GitHub ↗

List of platform CallingConvention objects (read-only) :getter: returns the list of supported CallingConvention objects :type: list(CallingConvention)

(self)

Source from the content-addressed store, hash-verified

448
449 @property
450 def calling_conventions(self):
451 """
452 List of platform CallingConvention objects (read-only)
453
454 :getter: returns the list of supported CallingConvention objects
455 :type: list(CallingConvention)
456 """
457 count = ctypes.c_ulonglong()
458 cc = core.BNGetPlatformCallingConventions(self.handle, count)
459 assert cc is not None, "core.BNGetPlatformCallingConventions returned None"
460 result = []
461 for i in range(0, count.value):
462 result.append(callingconvention.CallingConvention(handle=core.BNNewCallingConventionReference(cc[i])))
463 core.BNFreeCallingConventionList(cc, count.value)
464 return result
465
466 def get_global_register_type(self, reg: 'architecture.RegisterType'):
467 reg = self.arch.get_reg_index(reg)

Callers 3

translate_functionMethod · 0.45
to_bn_calling_conventionFunction · 0.45

Calls 2

CallingConventionMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected