mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
This commit cleans and modernizes the code base of LIEF.
Among the changes: - It removes the ``and, or, not`` keywords - It updates the Documentation - It moves the internal structures in the ``details::`` namespace
This commit is contained in:
@@ -29,12 +29,15 @@ using setter_t = void (Relocation::*)(T);
|
||||
|
||||
template<>
|
||||
void create<Relocation>(py::module& m) {
|
||||
py::class_<Relocation, Object>(m, "Relocation")
|
||||
py::class_<Relocation, Object>(m, "Relocation",
|
||||
R"delim(
|
||||
Class which represents an abstracted Relocation
|
||||
)delim")
|
||||
.def(py::init(),
|
||||
"Default constructor")
|
||||
|
||||
.def(py::init<uint64_t, uint8_t>(),
|
||||
"Constructor from :attr:`~lief.Relocation.address` and :attr:`~lief.Relocation.size`",
|
||||
"Constructor from an :attr:`~lief.Relocation.address` and a :attr:`~lief.Relocation.size`",
|
||||
"address"_a, "size"_a)
|
||||
|
||||
.def_property("address",
|
||||
|
||||
Reference in New Issue
Block a user