libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
pythonUtils.hpp
Go to the documentation of this file.
1
2/*
3** Copyright (C) - Triton
4**
5** This program is under the terms of the Apache License 2.0.
6*/
7
8#ifndef TRITON_PYTHONUTILS_H
9#define TRITON PYTHONUTILS_H
10
13
14
15
17namespace triton {
24 namespace bindings {
32 namespace python {
40 bool PyLong_AsBool(PyObject* obj);
41
43 triton::__uint PyLong_AsUint(PyObject* obj);
44
46 triton::usize PyLong_AsUsize(PyObject* obj);
47
49 triton::uint32 PyLong_AsUint32(PyObject* obj);
50
52 triton::uint64 PyLong_AsUint64(PyObject* obj);
53
55 triton::uint128 PyLong_AsUint128(PyObject* obj);
56
58 triton::uint256 PyLong_AsUint256(PyObject* obj);
59
61 triton::uint512 PyLong_AsUint512(PyObject* obj);
62
64 PyObject* PyLong_FromUint(triton::__uint value);
65
67 PyObject* PyLong_FromUsize(triton::usize value);
68
70 PyObject* PyLong_FromUint32(triton::uint32 value);
71
73 PyObject* PyLong_FromUint64(triton::uint64 value);
74
76 PyObject* PyLong_FromUint128(triton::uint128 value);
77
79 PyObject* PyLong_FromUint256(triton::uint256 value);
80
82 PyObject* PyLong_FromUint512(triton::uint512 value);
83
85 };
87 };
89};
90
91#endif /* TRITON_PYTHONUTILS_H */
PyObject * PyLong_FromUint(triton::__uint value)
Returns a pyObject from a triton::__uint.
Definition utils.cpp:254
triton::uint64 PyLong_AsUint64(PyObject *vv)
Returns a triton::uint64 from a pyObject.
Definition utils.cpp:137
triton::uint128 PyLong_AsUint128(PyObject *vv)
Returns a triton::uint128 from a pyObject.
Definition utils.cpp:166
PyObject * PyLong_FromUsize(triton::usize value)
Returns a pyObject from a triton::usize.
Definition utils.cpp:288
triton::__uint PyLong_AsUint(PyObject *vv)
Returns a triton::__uint from a pyObject.
Definition utils.cpp:50
PyObject * PyLong_FromUint256(triton::uint256 value)
Returns a pyObject from a triton::uint256.
Definition utils.cpp:388
bool PyLong_AsBool(PyObject *obj)
Returns a bool from a pyObject.
Definition utils.cpp:45
PyObject * PyLong_FromUint512(triton::uint512 value)
Returns a pyObject from a triton::uint512.
Definition utils.cpp:418
triton::uint512 PyLong_AsUint512(PyObject *vv)
Returns a triton::uint512 from a pyObject.
Definition utils.cpp:224
triton::uint256 PyLong_AsUint256(PyObject *vv)
Returns a triton::uint256 from a pyObject.
Definition utils.cpp:195
PyObject * PyLong_FromUint64(triton::uint64 value)
Returns a pyObject from a triton::uint64.
Definition utils.cpp:328
triton::uint32 PyLong_AsUint32(PyObject *vv)
Returns a triton::uint32 from a pyObject.
Definition utils.cpp:108
triton::usize PyLong_AsUsize(PyObject *vv)
Returns a triton::usize from a pyObject.
Definition utils.cpp:79
PyObject * PyLong_FromUint128(triton::uint128 value)
Returns a pyObject from a triton::uint128.
Definition utils.cpp:358
PyObject * PyLong_FromUint32(triton::uint32 value)
Returns a pyObject from a triton::uint32.
Definition utils.cpp:322
std::size_t usize
unsigned MAX_INT 32 or 64 bits according to the CPU.
std::uint64_t uint64
unisgned 64-bits
std::uint32_t uint32
unisgned 32-bits
unsigned long long __uint
unsigned long long if the arch is 64-bits.
The Triton namespace.