mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Enhance Mach-O's builder and add support for recent LC commands
This commit is contained in:
@@ -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__",
|
||||
|
||||
Reference in New Issue
Block a user