Uniform API name for sections and segments.

ELF:
  - segment.data has been renamed to segment.content
This commit is contained in:
Romain Thomas
2017-04-16 10:21:23 +02:00
parent ab9c7d7e86
commit 3ffbb53850
10 changed files with 16 additions and 21 deletions
+6 -2
View File
@@ -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)