32namespace py = pybind11;
41objectfile_pybind(py::module_ &m_internal)
43 py::module_
m = m_internal.def_submodule(
"object_file");
45 py::class_<loader::ObjectFile>(
m,
"ObjectFile")
46 .def(
"get_arch", [](
const loader::ObjectFile &obj) {
48 }, py::return_value_policy::reference)
49 .def(
"get_op_sys", [](
const loader::ObjectFile &obj) {
51 }, py::return_value_policy::reference)
55 m.def(
"create", [](
const std::string &fname) {
58EmbeddedPyBind embed_(
"object_file", &objectfile_pybind);
virtual ObjectFile * getInterpreter() const
const char * archToString(Arch arch)
ObjectFile * createObjectFile(const std::string &fname, bool raw)
const char * opSysToString(OpSys op_sys)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.