summaryrefslogtreecommitdiff
path: root/python/typeprinter.py
AgeCommit message (Collapse)Author
2026-04-15[Python API] Replace bare "except:" with "except Exception:" to fix signal ↵Josh Ferrell
propagation
2026-02-26fix[python]: covariant user listsnullableVoidPtr
2026-01-01update copyrights for 2026Jordan Wiens
2025-12-11Specify fixed underlying types for enums exposed by coreMark Rowe
This allows a few widely-used enums to be shrunk from 4 bytes to 1 byte, improving packing when they're used as struct members. To remain compatible with C, we follow CoreFoundation's approach and use a macro when defining the enum: ``` #if defined(__cplusplus) || __has_extension(c_fixed_enum) #define BN_ENUM(type, name) enum name : type #else #define BN_ENUM(type, name) typedef type name; enum #endif BN_ENUM(uint8_t, SomeEnum) { ... } ``` In C++ and C23 this will expand to an enum with a fixed underlying type. In older C language versions, this will result in the enum type being a typedef of the underlying type, with an unnamed enum providing the enum values. Minor changes were needed within the Python bindings to update places that made assumptions about the underlying type of the enums.
2025-11-21Add get and __contains__ methods to all *MetaClassPeter LaFosse
Fixes: https://github.com/Vector35/binaryninja-api/issues/7588
2025-08-01Use log_error_for_exception in the Python API to pass tracebacks in the ↵Rusty Wagner
stack trace associated with log messages, instead of creating large mutli-line messages for every exception
2025-03-28missed the older dates!Jordan Wiens
2024-12-27Add default implementations to Python TypePrinter to dual C++Glenn Smith
2024-06-04Add CorePlatform to python api for proper subclassingGlenn Smith
2024-04-11Change default paddingCols value to 64Glenn Smith
80 would have made sense if it were characters, but blocks of 0x50 bytes just look plain weird
2024-04-11Rename lineWidth -> paddingCols in GetTypeLines()Glenn Smith
This is a more accurate name for what the parameter actually does. Documentation was improved as well.
2024-01-08update copyright yearJordan Wiens
2023-11-06Type ContainersGlenn Smith
2023-11-02Ensure Type objects are created correctly everywhere and add guardrailPeter LaFosse
2023-03-30Add support for deriving structures from other structuresRusty Wagner
2023-01-05Update copyright to 2023Josh F
2022-12-23Fixed missing newlines before `:param` in docstringsGalen Williamson
This was causing the generated html to not show the param lines correctly.
2022-11-16Add python docs for TypePrinter methodsGlenn Smith
2022-11-16Add TypePrinter::PrintAllTypes to export C headersGlenn Smith
2022-05-11Clang+TypeParser APIsGlenn Smith