graph LR
XedPy["XedPy"]
decode_instruction["decode_instruction"]
encode_instruction["encode_instruction"]
XedInstructionOperand["XedInstructionOperand"]
XedPy -- "orchestrates" --> decode_instruction
XedPy -- "orchestrates" --> encode_instruction
decode_instruction -- "produces" --> XedInstructionOperand
encode_instruction -- "consumes" --> XedInstructionOperand
The Public API & Examples (Python Bindings) subsystem provides the Python interface for the XED library, enabling high-level interaction with its decoding and encoding capabilities. It acts as a bridge between Python applications and the underlying C library, abstracting the low-level CFFI details.
The main Python class serving as the high-level entry point for the XED library. It manages the library's state and orchestrates both decoding and encoding operations, providing a simplified API for Python consumers.
Related Classes/Methods:
A core function within XedPy (or closely associated) responsible for interfacing with the XED C library via CFFI. It takes raw instruction bytes and decodes them into a structured XED instruction object, handling the necessary CFFI calls and data conversions.
Related Classes/Methods:
A core function within XedPy (or closely associated) that interfaces with the XED C library via CFFI to encode instruction details (e.g., mnemonic, operands) into raw instruction bytes. It manages the setup of encoding requests and marshaling data to the C library.
Related Classes/Methods:
A Python data structure representing a single operand of an XED instruction. It encapsulates operand type and value, serving as a crucial data transfer object for both the output of decoding operations and the input for encoding requests.
Related Classes/Methods: