From 41e5de103243192e864d2455dcad9cbd02f30233 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sun, 30 Mar 2025 09:28:34 -0400 Subject: add example code for Platform --- python/platform.py | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'python/platform.py') diff --git a/python/platform.py b/python/platform.py index 044b5b9d..d7cdabe8 100644 --- a/python/platform.py +++ b/python/platform.py @@ -60,7 +60,35 @@ class _PlatformMetaClass(type): class Platform(metaclass=_PlatformMetaClass): """ ``class Platform`` contains all information related to the execution environment of the binary, mainly the - calling conventions used. + calling conventions used, the operating system, and the architecture. + + The following example showing the live list of platforms may not match your list. Some platforms are included only + with specific versions of Binary Ninja and others are installed by plugins. The bare architecture version of the + platform does not include any default ABI/calling convention:: + + >>> list(Platform) + [, , , , + , , , , + , , , , + , , , , + , , , , + , , , + , , , , + , , , , + , , , , + , , , , + , , , , + , , , , + , , , , + , , , + , , , + , , , + , , , , + , , , , + , , , , + , , ] + >>> thumb2 = Platform["thumb2"] + """ name = None type_file_path = None # path to platform types file -- cgit v1.3.1