libTriton  version 1.0 build 1549
Classes | Functions | Variables
Python
Collaboration diagram for Python:

Classes

struct  triton::bindings::python::AstNode_Object
 pyAstNode object. More...
 
struct  triton::bindings::python::BitsVector_Object
 pyBitsVector object. More...
 
struct  triton::bindings::python::BasicBlock_Object
 pyBasicBlock object. More...
 
struct  triton::bindings::python::Immediate_Object
 pyImmediate object. More...
 
struct  triton::bindings::python::Instruction_Object
 pyInstruction object. More...
 
struct  triton::bindings::python::MemoryAccess_Object
 pyMemory object. More...
 
struct  triton::bindings::python::PathConstraint_Object
 pyPathConstraint object. More...
 
struct  triton::bindings::python::Register_Object
 pyRegister object. More...
 
struct  triton::bindings::python::TritonContext_Object
 pyTritonContext object. More...
 
struct  triton::bindings::python::AstContext_Object
 pyAstContext object. More...
 
struct  triton::bindings::python::SolverModel_Object
 pySolverModel object. More...
 
struct  triton::bindings::python::SymbolicExpression_Object
 pySymbolicExpression object. More...
 
struct  triton::bindings::python::SymbolicVariable_Object
 pySymbolicVariable object. More...
 

Functions

void triton::bindings::python::initArchNamespace (PyObject *archDict)
 Initializes the ARCH python namespace. More...
 
void triton::bindings::python::initAstNodeNamespace (PyObject *astNodeDict)
 Initializes the AST_NODE python namespace. More...
 
void triton::bindings::python::initAstRepresentationNamespace (PyObject *astRepresentationDict)
 Initializes the AST_REPRESENTATION python namespace. More...
 
void triton::bindings::python::initCallbackNamespace (PyObject *callbackDict)
 Initializes the CALLBACK python namespace. More...
 
void triton::bindings::python::initConditionsNamespace (PyObject *conditionsDict)
 Initializes the CONDITION python namespace. More...
 
void triton::bindings::python::initCpuSizeNamespace (PyObject *cpuSizeDict)
 Initializes the CPUSIZE python namespace. More...
 
void triton::bindings::python::initOpcodesNamespace (PyObject *opcodeDict)
 Initializes the OPCODE python namespace. More...
 
void triton::bindings::python::initPrefixesNamespace (PyObject *prefixDict)
 Initializes the PREFIX python namespace. More...
 
void triton::bindings::python::initOperandNamespace (PyObject *operandDict)
 Initializes the OPERAND python namespace. More...
 
void triton::bindings::python::initShiftsNamespace (PyObject *shiftDict)
 Initializes the SHIFT python namespace. More...
 
void triton::bindings::python::initExceptionNamespace (PyObject *exceptionDict)
 Initializes the EXCEPTION python namespace. More...
 
void triton::bindings::python::initExtendNamespace (PyObject *extendDict)
 Initializes the EXTEND python namespace. More...
 
void triton::bindings::python::initRegNamespace (PyObject *regDict)
 Initializes the REG python namespace. More...
 
void triton::bindings::python::initModeNamespace (PyObject *modeDict)
 Initializes the MODE python namespace. More...
 
void triton::bindings::python::initSolverNamespace (PyObject *solverDict)
 Initializes the SOLVER python namespace. More...
 
void triton::bindings::python::initSolverStateNamespace (PyObject *solverStateDict)
 Initializes the SOLVER_STATE python namespace. More...
 
void triton::bindings::python::initStubsNamespace (PyObject *stubsDict)
 Initializes the STUBS python namespace. More...
 
void triton::bindings::python::initSymbolicNamespace (PyObject *symbolicDict)
 Initializes the SYMBOLIC python namespace. More...
 
void triton::bindings::python::initVersionNamespace (PyObject *versionDict)
 Initializes the VERSION python namespace. More...
 
PyMODINIT_FUNC triton::bindings::python::inittriton (void)
 Entry point python bindings (Py2/3). More...
 
PyObject * triton::bindings::python::PyInit_triton (void)
 
PyObject * triton::bindings::python::PyAstNode (const triton::ast::SharedAbstractNode &node)
 Creates the AstNode python class. More...
 
template<typename T >
PyObject * triton::bindings::python::PyBitsVector (const T &op)
 Creates the BitsVector python class. More...
 
PyObject * triton::bindings::python::PyImmediate (const triton::arch::Immediate &imm)
 Creates the Immediate python class. More...
 
PyObject * triton::bindings::python::PyBasicBlock (void)
 Creates the BasicBlock python class. More...
 
PyObject * triton::bindings::python::PyBasicBlock (const triton::arch::BasicBlock &block)
 Creates the BasicBlock python class. More...
 
PyObject * triton::bindings::python::PyBasicBlock (std::vector< triton::arch::Instruction > &insts)
 Creates the BasicBlock python class. More...
 
PyObject * triton::bindings::python::PyInstruction (void)
 Creates the Instruction python class. More...
 
PyObject * triton::bindings::python::PyInstruction (const triton::arch::Instruction &inst)
 Creates the Instruction python class. More...
 
PyObject * triton::bindings::python::PyInstruction (const void *opcodes, triton::uint32 opSize)
 Creates the Instruction python class. More...
 
PyObject * triton::bindings::python::PyInstruction (triton::uint64 addr, const void *opcodes, triton::uint32 opSize)
 Creates the Instruction python class. More...
 
PyObject * triton::bindings::python::PyMemoryAccess (const triton::arch::MemoryAccess &mem)
 Creates the Memory python class. More...
 
PyObject * triton::bindings::python::PyPathConstraint (const triton::engines::symbolic::PathConstraint &pc)
 Creates the PathConstraint python class. More...
 
PyObject * triton::bindings::python::PyTritonContext (void)
 Creates the new TritonContext python class. More...
 
PyObject * triton::bindings::python::PyTritonContext (triton::arch::architecture_e arch)
 Creates the new TritonContext python class. More...
 
PyObject * triton::bindings::python::PyTritonContextRef (triton::Context &ctx)
 Creates a TritonContext python class which is a reference to another Context. More...
 
PyObject * triton::bindings::python::PyAstContext (const triton::ast::SharedAstContext &actx)
 Creates an AstContext python class. More...
 
PyObject * triton::bindings::python::PyRegister (const triton::arch::Register &reg)
 Creates the Register python class. More...
 
PyObject * triton::bindings::python::PySolverModel (const triton::engines::solver::SolverModel &model)
 Creates the SolverModel python class. More...
 
PyObject * triton::bindings::python::PySymbolicExpression (const triton::engines::symbolic::SharedSymbolicExpression &expr)
 Creates the SymbolicExpression python class. More...
 
PyObject * triton::bindings::python::PySymbolicVariable (const triton::engines::symbolic::SharedSymbolicVariable &symVar)
 Creates the SymbolicVariable python class. More...
 
bool triton::bindings::python::PyLong_AsBool (PyObject *obj)
 Returns a bool from a pyObject. More...
 
triton::__uint triton::bindings::python::PyLong_AsUint (PyObject *obj)
 Returns a triton::__uint from a pyObject. More...
 
triton::usize triton::bindings::python::PyLong_AsUsize (PyObject *obj)
 Returns a triton::usize from a pyObject. More...
 
triton::uint32 triton::bindings::python::PyLong_AsUint32 (PyObject *obj)
 Returns a triton::uint32 from a pyObject. More...
 
triton::uint64 triton::bindings::python::PyLong_AsUint64 (PyObject *obj)
 Returns a triton::uint64 from a pyObject. More...
 
triton::uint128 triton::bindings::python::PyLong_AsUint128 (PyObject *obj)
 Returns a triton::uint128 from a pyObject. More...
 
triton::uint256 triton::bindings::python::PyLong_AsUint256 (PyObject *obj)
 Returns a triton::uint256 from a pyObject. More...
 
triton::uint512 triton::bindings::python::PyLong_AsUint512 (PyObject *obj)
 Returns a triton::uint512 from a pyObject. More...
 
PyObject * triton::bindings::python::PyLong_FromUint (triton::__uint value)
 Returns a pyObject from a triton::__uint. More...
 
PyObject * triton::bindings::python::PyLong_FromUsize (triton::usize value)
 Returns a pyObject from a triton::usize. More...
 
PyObject * triton::bindings::python::PyLong_FromUint32 (triton::uint32 value)
 Returns a pyObject from a triton::uint32. More...
 
PyObject * triton::bindings::python::PyLong_FromUint64 (triton::uint64 value)
 Returns a pyObject from a triton::uint64. More...
 
PyObject * triton::bindings::python::PyLong_FromUint128 (triton::uint128 value)
 Returns a pyObject from a triton::uint128. More...
 
PyObject * triton::bindings::python::PyLong_FromUint256 (triton::uint256 value)
 Returns a pyObject from a triton::uint256. More...
 
PyObject * triton::bindings::python::PyLong_FromUint512 (triton::uint512 value)
 Returns a pyObject from a triton::uint512. More...
 
PyObject * triton::bindings::python::xPyClass_New (PyObject *b, PyObject *d, PyObject *n)
 Creates a PyClass and raises an exception if it fails. dict is copied in Py3 ! All references are decremented. More...
 
PyObject * triton::bindings::python::xPyDict_New (void)
 Creates a PyDict and raises an exception if it fails. More...
 
PyObject * triton::bindings::python::xPyList_New (Py_ssize_t len)
 Creates a PyList and raises an exception if it fails. More...
 
PyObject * triton::bindings::python::xPyString_FromString (const char *v)
 Creates a PyString and raises an exception if it fails. More...
 
PyObject * triton::bindings::python::xPyTuple_New (Py_ssize_t len)
 Creates a PyTuple and raises an exception if it fails. More...
 
int triton::bindings::python::xPyDict_SetItemString (PyObject *p, const char *key, PyObject *val)
 Same as PyDict_SetItemString but decrements reference on object. More...
 
int triton::bindings::python::xPyDict_SetItem (PyObject *p, PyObject *key, PyObject *val)
 Same as PyDict_SetItem but decrements reference on object and key. More...
 

Variables

PyObject * triton::bindings::python::tritonModule = nullptr
 triton python module. More...
 
PyModuleDef triton::bindings::python::tritonModuleDef
 triton python module definition. More...
 
PyMethodDef triton::bindings::python::tritonCallbacks []
 triton python methods. More...
 
PyTypeObject triton::bindings::python::AstNode_Type
 pyAstNode type. More...
 
PyTypeObject triton::bindings::python::BitsVector_Type
 pyBitsVector type. More...
 
PyTypeObject triton::bindings::python::BasicBlock_Type
 pyBasicBlock type. More...
 
PyTypeObject triton::bindings::python::Immediate_Type
 pyImmediate type. More...
 
PyTypeObject triton::bindings::python::Instruction_Type
 pyInstruction type. More...
 
PyTypeObject triton::bindings::python::MemoryAccess_Type
 pyMemory type. More...
 
PyTypeObject triton::bindings::python::PathConstraint_Type
 pyPathConstraint type. More...
 
PyTypeObject triton::bindings::python::Register_Type
 pyRegister type. More...
 
PyTypeObject triton::bindings::python::TritonContextObject_Type
 pyRegister type.
 
PyTypeObject triton::bindings::python::AstContextObject_Type
 pyRegister type.
 
PyTypeObject triton::bindings::python::SolverModel_Type
 pySolverModel type. More...
 
PyTypeObject triton::bindings::python::SymbolicExpression_Type
 pySymbolicExpression type. More...
 
PyTypeObject triton::bindings::python::SymbolicVariable_Type
 pySymbolicVariable type. More...
 

Detailed Description

Function Documentation

◆ initArchNamespace()

void triton::bindings::python::initArchNamespace ( PyObject *  archDict)

Initializes the ARCH python namespace.

Definition at line 41 of file initArchNamespace.cpp.

◆ initAstNodeNamespace()

void triton::bindings::python::initAstNodeNamespace ( PyObject *  astNodeDict)

Initializes the AST_NODE python namespace.

Definition at line 93 of file initAstNodeNamespace.cpp.

◆ initAstRepresentationNamespace()

void triton::bindings::python::initAstRepresentationNamespace ( PyObject *  astRepresentationDict)

Initializes the AST_REPRESENTATION python namespace.

Definition at line 49 of file initAstRepresentationNamespace.cpp.

◆ initCallbackNamespace()

void triton::bindings::python::initCallbackNamespace ( PyObject *  callbackDict)

Initializes the CALLBACK python namespace.

Definition at line 63 of file initCallbackNamespace.cpp.

◆ initConditionsNamespace()

void triton::bindings::python::initConditionsNamespace ( PyObject *  conditionsDict)

Initializes the CONDITION python namespace.

Definition at line 84 of file initConditionsNamespace.cpp.

◆ initCpuSizeNamespace()

void triton::bindings::python::initCpuSizeNamespace ( PyObject *  cpuSizeDict)

Initializes the CPUSIZE python namespace.

Definition at line 84 of file initCpuSizeNamespace.cpp.

◆ initExceptionNamespace()

void triton::bindings::python::initExceptionNamespace ( PyObject *  exceptionDict)

Initializes the EXCEPTION python namespace.

Definition at line 51 of file initExceptionNamespace.cpp.

◆ initExtendNamespace()

void triton::bindings::python::initExtendNamespace ( PyObject *  extendDict)

Initializes the EXTEND python namespace.

Definition at line 63 of file initExtendNamespace.cpp.

◆ initModeNamespace()

void triton::bindings::python::initModeNamespace ( PyObject *  modeDict)

Initializes the MODE python namespace.

Definition at line 68 of file initModeNamespace.cpp.

◆ initOpcodesNamespace()

void triton::bindings::python::initOpcodesNamespace ( PyObject *  opcodesDict)

Initializes the OPCODE python namespace.

Definition at line 2189 of file initOpcodesNamespace.cpp.

◆ initOperandNamespace()

void triton::bindings::python::initOperandNamespace ( PyObject *  operandDict)

Initializes the OPERAND python namespace.

Definition at line 41 of file initOperandNamespace.cpp.

◆ initPrefixesNamespace()

void triton::bindings::python::initPrefixesNamespace ( PyObject *  prefixesDict)

Initializes the PREFIX python namespace.

Definition at line 43 of file initPrefixesNamespace.cpp.

◆ initRegNamespace()

void triton::bindings::python::initRegNamespace ( PyObject *  registersDict)

Initializes the REG python namespace.

Definition at line 78 of file initRegNamespace.cpp.

◆ initShiftsNamespace()

void triton::bindings::python::initShiftsNamespace ( PyObject *  shiftsDict)

Initializes the SHIFT python namespace.

Definition at line 69 of file initShiftsNamespace.cpp.

◆ initSolverNamespace()

void triton::bindings::python::initSolverNamespace ( PyObject *  solverDict)

Initializes the SOLVER python namespace.

Definition at line 39 of file initSolverNamespace.cpp.

◆ initSolverStateNamespace()

void triton::bindings::python::initSolverStateNamespace ( PyObject *  solverStateDict)

Initializes the SOLVER_STATE python namespace.

Definition at line 42 of file initSolverStateNamespace.cpp.

◆ initStubsNamespace()

void triton::bindings::python::initStubsNamespace ( PyObject *  stubsDict)

Initializes the STUBS python namespace.

Definition at line 96 of file initStubsNamespace.cpp.

◆ initSymbolicNamespace()

void triton::bindings::python::initSymbolicNamespace ( PyObject *  symbolicDict)

Initializes the SYMBOLIC python namespace.

Definition at line 43 of file initSymbolicNamespace.cpp.

◆ inittriton()

PyMODINIT_FUNC triton::bindings::python::inittriton ( void  )

Entry point python bindings (Py2/3).

Definition at line 42 of file init.cpp.

◆ initVersionNamespace()

void triton::bindings::python::initVersionNamespace ( PyObject *  versionDict)

Initializes the VERSION python namespace.

Definition at line 44 of file initVersionNamespace.cpp.

◆ PyAstContext()

PyObject * triton::bindings::python::PyAstContext ( const triton::ast::SharedAstContext actx)

Creates an AstContext python class.

Definition at line 1909 of file pyAstContext.cpp.

◆ PyAstNode()

PyObject * triton::bindings::python::PyAstNode ( const triton::ast::SharedAbstractNode node)

Creates the AstNode python class.

Definition at line 988 of file pyAstNode.cpp.

◆ PyBasicBlock() [1/3]

PyObject * triton::bindings::python::PyBasicBlock ( const triton::arch::BasicBlock block)

Creates the BasicBlock python class.

Definition at line 313 of file pyBasicBlock.cpp.

◆ PyBasicBlock() [2/3]

PyObject * triton::bindings::python::PyBasicBlock ( std::vector< triton::arch::Instruction > &  insts)

Creates the BasicBlock python class.

Definition at line 325 of file pyBasicBlock.cpp.

◆ PyBasicBlock() [3/3]

PyObject * triton::bindings::python::PyBasicBlock ( void  )

Creates the BasicBlock python class.

Definition at line 337 of file pyBasicBlock.cpp.

◆ PyBitsVector()

template<typename T >
PyObject * triton::bindings::python::PyBitsVector ( const T &  op)

Creates the BitsVector python class.

Definition at line 220 of file pyBitsVector.cpp.

◆ PyImmediate()

PyObject * triton::bindings::python::PyImmediate ( const triton::arch::Immediate imm)

Creates the Immediate python class.

Definition at line 333 of file pyImmediate.cpp.

◆ PyInit_triton()

PyObject * triton::bindings::python::PyInit_triton ( void  )

Definition at line 45 of file init.cpp.

◆ PyInstruction() [1/4]

PyObject * triton::bindings::python::PyInstruction ( const triton::arch::Instruction inst)

Creates the Instruction python class.

Definition at line 852 of file pyInstruction.cpp.

◆ PyInstruction() [2/4]

PyObject * triton::bindings::python::PyInstruction ( const void *  opcode,
triton::uint32  opSize 
)

Creates the Instruction python class.

Definition at line 864 of file pyInstruction.cpp.

◆ PyInstruction() [3/4]

PyObject * triton::bindings::python::PyInstruction ( triton::uint64  addr,
const void *  opcode,
triton::uint32  opSize 
)

Creates the Instruction python class.

Definition at line 876 of file pyInstruction.cpp.

◆ PyInstruction() [4/4]

PyObject * triton::bindings::python::PyInstruction ( void  )

Creates the Instruction python class.

Definition at line 840 of file pyInstruction.cpp.

◆ PyLong_AsBool()

bool triton::bindings::python::PyLong_AsBool ( PyObject *  obj)

Returns a bool from a pyObject.

Definition at line 22 of file utils.cpp.

◆ PyLong_AsUint()

triton::__uint triton::bindings::python::PyLong_AsUint ( PyObject *  vv)

Returns a triton::__uint from a pyObject.

Definition at line 27 of file utils.cpp.

◆ PyLong_AsUint128()

triton::uint128 triton::bindings::python::PyLong_AsUint128 ( PyObject *  vv)

Returns a triton::uint128 from a pyObject.

Definition at line 143 of file utils.cpp.

◆ PyLong_AsUint256()

triton::uint256 triton::bindings::python::PyLong_AsUint256 ( PyObject *  vv)

Returns a triton::uint256 from a pyObject.

Definition at line 172 of file utils.cpp.

◆ PyLong_AsUint32()

triton::uint32 triton::bindings::python::PyLong_AsUint32 ( PyObject *  vv)

Returns a triton::uint32 from a pyObject.

Definition at line 85 of file utils.cpp.

◆ PyLong_AsUint512()

triton::uint512 triton::bindings::python::PyLong_AsUint512 ( PyObject *  vv)

Returns a triton::uint512 from a pyObject.

Definition at line 201 of file utils.cpp.

◆ PyLong_AsUint64()

triton::uint64 triton::bindings::python::PyLong_AsUint64 ( PyObject *  vv)

Returns a triton::uint64 from a pyObject.

Definition at line 114 of file utils.cpp.

◆ PyLong_AsUsize()

triton::usize triton::bindings::python::PyLong_AsUsize ( PyObject *  vv)

Returns a triton::usize from a pyObject.

Definition at line 56 of file utils.cpp.

◆ PyLong_FromUint()

PyObject * triton::bindings::python::PyLong_FromUint ( triton::__uint  value)

Returns a pyObject from a triton::__uint.

Definition at line 231 of file utils.cpp.

◆ PyLong_FromUint128()

PyObject * triton::bindings::python::PyLong_FromUint128 ( triton::uint128  value)

Returns a pyObject from a triton::uint128.

Definition at line 344 of file utils.cpp.

◆ PyLong_FromUint256()

PyObject * triton::bindings::python::PyLong_FromUint256 ( triton::uint256  value)

Returns a pyObject from a triton::uint256.

Definition at line 377 of file utils.cpp.

◆ PyLong_FromUint32()

PyObject * triton::bindings::python::PyLong_FromUint32 ( triton::uint32  value)

Returns a pyObject from a triton::uint32.

Definition at line 305 of file utils.cpp.

◆ PyLong_FromUint512()

PyObject * triton::bindings::python::PyLong_FromUint512 ( triton::uint512  value)

Returns a pyObject from a triton::uint512.

Definition at line 410 of file utils.cpp.

◆ PyLong_FromUint64()

PyObject * triton::bindings::python::PyLong_FromUint64 ( triton::uint64  value)

Returns a pyObject from a triton::uint64.

Definition at line 311 of file utils.cpp.

◆ PyLong_FromUsize()

PyObject * triton::bindings::python::PyLong_FromUsize ( triton::usize  value)

Returns a pyObject from a triton::usize.

Definition at line 268 of file utils.cpp.

◆ PyMemoryAccess()

PyObject * triton::bindings::python::PyMemoryAccess ( const triton::arch::MemoryAccess mem)

Creates the Memory python class.

Definition at line 499 of file pyMemoryAccess.cpp.

◆ PyPathConstraint()

PyObject * triton::bindings::python::PyPathConstraint ( const triton::engines::symbolic::PathConstraint pc)

Creates the PathConstraint python class.

Definition at line 281 of file pyPathConstraint.cpp.

◆ PyRegister()

PyObject * triton::bindings::python::PyRegister ( const triton::arch::Register reg)

Creates the Register python class.

Definition at line 438 of file pyRegister.cpp.

◆ PySolverModel()

PyObject * triton::bindings::python::PySolverModel ( const triton::engines::solver::SolverModel model)

Creates the SolverModel python class.

Definition at line 220 of file pySolverModel.cpp.

◆ PySymbolicExpression()

PyObject * triton::bindings::python::PySymbolicExpression ( const triton::engines::symbolic::SharedSymbolicExpression symExpr)

Creates the SymbolicExpression python class.

Definition at line 414 of file pySymbolicExpression.cpp.

◆ PySymbolicVariable()

PyObject * triton::bindings::python::PySymbolicVariable ( const triton::engines::symbolic::SharedSymbolicVariable symVar)

Creates the SymbolicVariable python class.

Definition at line 347 of file pySymbolicVariable.cpp.

◆ PyTritonContext() [1/2]

PyObject * triton::bindings::python::PyTritonContext ( triton::arch::architecture_e  arch)

Creates the new TritonContext python class.

Definition at line 3739 of file pyTritonContext.cpp.

◆ PyTritonContext() [2/2]

PyObject * triton::bindings::python::PyTritonContext ( void  )

Creates the new TritonContext python class.

Definition at line 3725 of file pyTritonContext.cpp.

◆ PyTritonContextRef()

PyObject * triton::bindings::python::PyTritonContextRef ( triton::Context ctx)

Creates a TritonContext python class which is a reference to another Context.

Definition at line 3753 of file pyTritonContext.cpp.

◆ xPyClass_New()

PyObject * triton::bindings::python::xPyClass_New ( PyObject *  b,
PyObject *  d,
PyObject *  n 
)

Creates a PyClass and raises an exception if it fails. dict is copied in Py3 ! All references are decremented.

Definition at line 53 of file pyXFunctions.cpp.

◆ xPyDict_New()

PyObject * triton::bindings::python::xPyDict_New ( void  )

Creates a PyDict and raises an exception if it fails.

Definition at line 21 of file pyXFunctions.cpp.

◆ xPyDict_SetItem()

int triton::bindings::python::xPyDict_SetItem ( PyObject *  p,
PyObject *  key,
PyObject *  val 
)

Same as PyDict_SetItem but decrements reference on object and key.

Definition at line 79 of file pyXFunctions.cpp.

◆ xPyDict_SetItemString()

int triton::bindings::python::xPyDict_SetItemString ( PyObject *  p,
const char *  key,
PyObject *  val 
)

Same as PyDict_SetItemString but decrements reference on object.

Definition at line 72 of file pyXFunctions.cpp.

◆ xPyList_New()

PyObject * triton::bindings::python::xPyList_New ( Py_ssize_t  len)

Creates a PyList and raises an exception if it fails.

Definition at line 29 of file pyXFunctions.cpp.

◆ xPyString_FromString()

PyObject * triton::bindings::python::xPyString_FromString ( const char *  v)

Creates a PyString and raises an exception if it fails.

Definition at line 45 of file pyXFunctions.cpp.

◆ xPyTuple_New()

PyObject * triton::bindings::python::xPyTuple_New ( Py_ssize_t  len)

Creates a PyTuple and raises an exception if it fails.

Definition at line 37 of file pyXFunctions.cpp.

Variable Documentation

◆ AstNode_Type

PyTypeObject triton::bindings::python::AstNode_Type

pyAstNode type.

Definition at line 918 of file pyAstNode.cpp.

◆ BasicBlock_Type

PyTypeObject triton::bindings::python::BasicBlock_Type

pyBasicBlock type.

Definition at line 247 of file pyBasicBlock.cpp.

◆ BitsVector_Type

PyTypeObject triton::bindings::python::BitsVector_Type

pyBitsVector type.

Definition at line 150 of file pyBitsVector.cpp.

◆ Immediate_Type

PyTypeObject triton::bindings::python::Immediate_Type

pyImmediate type.

Definition at line 267 of file pyImmediate.cpp.

◆ Instruction_Type

PyTypeObject triton::bindings::python::Instruction_Type

pyInstruction type.

Definition at line 774 of file pyInstruction.cpp.

◆ MemoryAccess_Type

PyTypeObject triton::bindings::python::MemoryAccess_Type

pyMemory type.

Definition at line 433 of file pyMemoryAccess.cpp.

◆ PathConstraint_Type

PyTypeObject triton::bindings::python::PathConstraint_Type

pyPathConstraint type.

Definition at line 219 of file pyPathConstraint.cpp.

◆ Register_Type

PyTypeObject triton::bindings::python::Register_Type

pyRegister type.

Definition at line 372 of file pyRegister.cpp.

◆ SolverModel_Type

PyTypeObject triton::bindings::python::SolverModel_Type

pySolverModel type.

Definition at line 154 of file pySolverModel.cpp.

◆ SymbolicExpression_Type

PyTypeObject triton::bindings::python::SymbolicExpression_Type

pySymbolicExpression type.

Definition at line 348 of file pySymbolicExpression.cpp.

◆ SymbolicVariable_Type

PyTypeObject triton::bindings::python::SymbolicVariable_Type

pySymbolicVariable type.

Definition at line 281 of file pySymbolicVariable.cpp.

◆ tritonCallbacks

PyMethodDef triton::bindings::python::tritonCallbacks
Initial value:
= {
{"BasicBlock", (PyCFunction)triton_BasicBlock, METH_VARARGS, ""},
{"Immediate", (PyCFunction)triton_Immediate, METH_VARARGS, ""},
{"Instruction", (PyCFunction)triton_Instruction, METH_VARARGS, ""},
{"MemoryAccess", (PyCFunction)triton_MemoryAccess, METH_VARARGS, ""},
{"TritonContext", (PyCFunction)triton_TritonContext, METH_VARARGS, ""},
{nullptr, nullptr, 0, nullptr}
}

triton python methods.

Definition at line 234 of file tritonCallbacks.cpp.

◆ tritonModule

PyObject * triton::bindings::python::tritonModule = nullptr

triton python module.

Definition at line 20 of file init.cpp.

◆ tritonModuleDef

PyModuleDef triton::bindings::python::tritonModuleDef
Initial value:
= {
PyModuleDef_HEAD_INIT,
"triton",
NULL,
-1,
}
PyMethodDef tritonCallbacks[]
triton python methods.

triton python module definition.

Definition at line 22 of file init.cpp.