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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user