Ejemplo n.º 1
0
 static PyObject* ElfProgramHeader_getAlign(PyObject* self, PyObject* noarg) {
   try {
     return PyLong_FromUint64(PyElfProgramHeader_AsElfProgramHeader(self)->getAlign());
   }
   catch (const std::exception& e) {
     return PyErr_Format(PyExc_TypeError, "%s", e.what());
   }
 }
Ejemplo n.º 2
0
 static PyObject* ElfProgramHeader_getType(PyObject* self, PyObject* noarg) {
   try {
     return PyLong_FromUint32(PyElfProgramHeader_AsElfProgramHeader(self)->getType());
   }
   catch (const triton::exceptions::Exception& e) {
     return PyErr_Format(PyExc_TypeError, "%s", e.what());
   }
 }
Ejemplo n.º 3
0
 //! ElfProgramHeader destructor.
 void ElfProgramHeader_dealloc(PyObject* self) {
   std::cout << std::flush;
   delete PyElfProgramHeader_AsElfProgramHeader(self);
   Py_DECREF(self);
 }