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:
rthomas
2022-01-27 18:50:12 +01:00
committed by Romain Thomas
parent 540049d0d9
commit a615adbee4
625 changed files with 15701 additions and 15535 deletions
+10 -4
View File
@@ -38,18 +38,24 @@ template<>
void create<DataInCode>(py::module& m) {
// Init Iterator
init_ref_iterator<DataInCode::it_entries>(m);
init_ref_iterator<DataInCode::it_entries>(m, "it_data_in_code_entries");
py::class_<DataInCode, LoadCommand>(m, "DataInCode")
py::class_<DataInCode, LoadCommand>(m, "DataInCode",
R"delim(
Interface of the LC_DATA_IN_CODE command
This command is used to list slices of code sections that contain data. The *slices*
information are stored as an array of :class:`~lief.MachO.DataCodeEntry`
)delim")
.def_property("data_offset",
static_cast<getter_t<uint32_t>>(&DataInCode::data_offset),
static_cast<setter_t<uint32_t>>(&DataInCode::data_offset),
"Offset in the binary where signature starts")
"Start of the array of the DataCodeEntry entries")
.def_property("data_size",
static_cast<getter_t<uint32_t>>(&DataInCode::data_size),
static_cast<setter_t<uint32_t>>(&DataInCode::data_size),
"Size of the raw signature")
"Whole size of the array (``size = sizeof(DataCodeEntry) * nb_elements``)")
.def_property_readonly("entries",
static_cast<DataInCode::it_entries (DataInCode::*)(void)>(&DataInCode::entries),