Function class represents a function in a binary and provides methods for analyzing its properties, control flow, variables, and intermediate language representations.
Class Declaration
Defined inbinaryninjaapi.h:12713
Basic Properties
Get Function Address
Get Binary View
Get Architecture
Get Platform
Symbol Information
Get Symbol
Check Export Status
Function Attributes
Auto-Discovery Status
User Annotations
Return Behavior
noreturn).
Purity
Type Information
Get Function Type
Set Function Type
Type Definition Status
Basic Blocks and Control Flow
Get All Basic Blocks
Get Basic Block at Address
Intermediate Language Access
Low-Level IL (LLIL)
Medium-Level IL (MLIL)
High-Level IL (HLIL)
Comments
Get Function Comment
Set Function Comment
Address Comments
Cross-References
Get Call Sites
Add User Cross-References
Add Type References
Add Type Field References
Variables
Get Variables
Variable Names and Types
Analysis Updates
Request Analysis
Check Update Status
Mark Recent Use
Complete Example
Here’s a complete example analyzing a function:See Also
- BinaryView Class - Binary file interface
- IL Classes - Intermediate language representations
- Architecture Class - CPU architecture support
- Type Class - Type system