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:
@@ -26,7 +26,10 @@ using setter_t = void (Section::*)(T);
|
||||
|
||||
template<>
|
||||
void create<Section>(py::module& m) {
|
||||
py::class_<Section, Object>(m, "Section")
|
||||
py::class_<Section, Object>(m, "Section",
|
||||
R"delim(
|
||||
Class which represents an abstracted section
|
||||
)delim")
|
||||
.def(py::init(),
|
||||
"Default constructor")
|
||||
|
||||
@@ -49,7 +52,7 @@ void create<Section>(py::module& m) {
|
||||
.def_property("offset",
|
||||
static_cast<getter_t<uint64_t>>(&Section::offset),
|
||||
static_cast<setter_t<uint64_t>>(&Section::offset),
|
||||
"Section's offset")
|
||||
"Section's file offset")
|
||||
|
||||
.def_property("virtual_address",
|
||||
static_cast<getter_t<uint64_t>>(&Section::virtual_address),
|
||||
|
||||
Reference in New Issue
Block a user