binaryninja.platform.Platform¶
-
class
Platform(arch=None, handle=None)[source]¶ class Platformcontains all information related to the execution environment of the binary, mainly the calling conventions used.-
__init__(arch=None, handle=None)[source]¶ x.__init__(…) initializes x; see help(type(x)) for signature
Methods
__init__([arch, handle])x.__init__(…) initializes x; see help(type(x)) for signature add_related_platform(arch, platform)generate_auto_platform_type_id(name)generate_auto_platform_type_ref(type_class, name)get_associated_platform_by_address(addr)get_auto_platform_type_id_source()get_function_by_name(name)get_related_platform(arch)get_system_call_name(number)get_system_call_type(number)get_type_by_name(name)get_variable_by_name(name)parse_types_from_source(source[, filename, …])parse_types_from_sourceparses the source string and any needed headers searching for them in the optional list of directories provided ininclude_dirs.parse_types_from_source_file(filename[, …])parse_types_from_source_fileparses the source filefilenameand any needed headers searching for them in the optional list of directories provided ininclude_dirs.register(os)registerregisters the platform for given OS name.register_calling_convention(cc)register_calling_conventionregister a new calling convention.Attributes
calling_conventionsList of platform CallingConvention objects (read-only) cdecl_calling_conventionCdecl calling convention. default_calling_conventionDefault calling convention. fastcall_calling_conventionFastcall calling convention. functionsList of platform-specific function definitions (read-only) listnamestdcall_calling_conventionStdcall calling convention. system_call_conventionSystem call convention. system_callsList of system calls for this platform (read-only) typesList of platform-specific types (read-only) variablesList of platform-specific variable definitions (read-only) -