Enhance Mach-O's builder and add support for recent LC commands

This commit is contained in:
Romain Thomas
2022-04-16 15:10:56 +02:00
parent 3020cc66de
commit e1a8244b92
123 changed files with 11292 additions and 3597 deletions
@@ -68,6 +68,13 @@ void create<DataInCode>(py::module& m) {
"Add an new " RST_CLASS_REF(lief.MachO.DataCodeEntry) "",
"entry"_a)
.def_property_readonly("content",
[] (const DataInCode& self) {
span<const uint8_t> content = self.content();
return py::memoryview::from_memory(content.data(), content.size());
}, "The original content as a bytes stream")
.def("__eq__", &DataInCode::operator==)
.def("__ne__", &DataInCode::operator!=)
.def("__hash__",