mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Add support for extensions.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <sstream>
|
||||
#include <nanobind/stl/vector.h>
|
||||
#include <nanobind/stl/string.h>
|
||||
#include <nanobind/stl/unique_ptr.h>
|
||||
#include "nanobind/extra/memoryview.hpp"
|
||||
|
||||
#include "LIEF/MachO/Binary.hpp"
|
||||
@@ -55,6 +56,8 @@
|
||||
#include "LIEF/MachO/UUIDCommand.hpp"
|
||||
#include "LIEF/MachO/VersionMin.hpp"
|
||||
|
||||
#include "LIEF/ObjC/Metadata.hpp"
|
||||
|
||||
#include "pyErr.hpp"
|
||||
#include "MachO/pyMachO.hpp"
|
||||
#include "pyIterator.hpp"
|
||||
@@ -663,6 +666,16 @@ void create<Binary>(nb::module_& m) {
|
||||
)doc"
|
||||
)
|
||||
|
||||
.def_prop_ro("objc_metadata", &Binary::objc_metadata,
|
||||
R"doc(
|
||||
Return Objective-C metadata info if present
|
||||
|
||||
.. warning::
|
||||
|
||||
This is only available with the extended version of LIEF.
|
||||
)doc"_doc
|
||||
)
|
||||
|
||||
.def("__getitem__",
|
||||
nb::overload_cast<LoadCommand::TYPE>(&Binary::operator[]),
|
||||
nb::rv_policy::reference_internal)
|
||||
|
||||
Reference in New Issue
Block a user