MCPcopy Create free account
hub / github.com/lief-project/LIEF / init_object

Function init_object

api/python/src/pyLIEF.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void init_object(nb::module_& m) {
87 nb::class_<Object>(m, "Object")
88 .def("__hash__", [] (const Object& self) {
89 return hash(self);
90 })
91 .def("__eq__",
92 [] (const Object& lhs, const Object& rhs) {
93 return hash(lhs) == hash(rhs);
94 });
95}
96
97void init_python_sink() {
98 spdlog::details::registry::instance().drop("LIEF");

Callers 1

initFunction · 0.85

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected