mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Uniform API name for sections and segments.
ELF: - segment.data has been renamed to segment.content
This commit is contained in:
@@ -22,11 +22,15 @@
|
||||
void init_utils_functions(py::module& m) {
|
||||
|
||||
#if defined(LIEF_PE_MODULE)
|
||||
m.def("is_pe", static_cast<bool (*)(const std::string&)>(&LIEF::PE::is_pe), "Check if the given binary is ``PE``");
|
||||
m.def("is_pe",
|
||||
static_cast<bool (*)(const std::string&)>(&LIEF::PE::is_pe),
|
||||
"Check if the given file is a ``PE``");
|
||||
#endif
|
||||
|
||||
#if defined(LIEF_ELF_MODULE)
|
||||
m.def("is_elf", &LIEF::ELF::is_elf, "Check if the given binary is ``ELF``");
|
||||
m.def("is_elf",
|
||||
&LIEF::ELF::is_elf,
|
||||
"Check if the given file is an ``ELF``");
|
||||
#endif
|
||||
|
||||
#if defined(LIEF_MACHO_MODULE)
|
||||
|
||||
Reference in New Issue
Block a user