mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Enhance Python binding
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
namespace LIEF {
|
||||
namespace PE {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (ResourceStringFileInfo::*)(void) const;
|
||||
@@ -28,7 +30,9 @@ using getter_t = T (ResourceStringFileInfo::*)(void) const;
|
||||
template<class T>
|
||||
using setter_t = void (ResourceStringFileInfo::*)(T);
|
||||
|
||||
void init_PE_ResourceStringFileInfo_class(py::module& m) {
|
||||
|
||||
template<>
|
||||
void create<ResourceStringFileInfo>(py::module& m) {
|
||||
py::class_<ResourceStringFileInfo, LIEF::Object>(m, "ResourceStringFileInfo",
|
||||
"Modelization of the ``StringFileInfo`` structure\n\n"
|
||||
"See: https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms646989(v=vs.85).aspx")
|
||||
@@ -69,3 +73,6 @@ void init_PE_ResourceStringFileInfo_class(py::module& m) {
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user