@@ -64,32 +64,7 @@ py::class_<BResources>(m, "BResources")
6464
6565return py::make_tuple (result,static_cast <int >(typeFound), idFound, byteSequence, lengthFound);
6666}," " ,py::arg (" byIndex" ))
67- /*
68- .def("GetResourceInfo", [](BResources& self, int32 byIndex){
69- type_code typeFound;
70- int32 idFound;
71- const char * nameFound;
72- size_t lengthFound;
73- bool result = self.GetResourceInfo(byIndex, &typeFound, &idFound, &nameFound, &lengthFound);
74-
75- // Utilizza py::str per rappresentare la stringa in Python
76- py::str pythonString(nameFound, lengthFound);
7767
78- return py::make_tuple(result, static_cast<int>(typeFound), idFound, pythonString, lengthFound);
79- }, "", py::arg("byIndex"))*/
80- /*
81- .def("GetResourceInfo", [](BResources& self, int32 byIndex){
82- type_code typeFound;
83- int32 idFound;
84- const char * nameFound;
85- //std::vector<char *> nameFound;
86- size_t lengthFound;
87- bool result = self.GetResourceInfo(byIndex, &typeFound, &idFound, &nameFound, &lengthFound);
88- py::array_t<const char> array = py::array_t<const char>({static_cast<ssize_t>(lengthFound)}, {sizeof(const char)}, nameFound);
89- return py::make_tuple(result, typeFound, idFound, array, lengthFound);
90- //std::vector<char*> charPtrVector = convertConstCharPtrArray(&nameFound, lengthFound);
91- //return py::make_tuple(result, typeFound, idFound, charPtrVector, lengthFound);
92- }, "", py::arg("byIndex"))*/
9368// .def("GetResourceInfo", py::overload_cast<type_code, int32, int32*, const char * *, size_t *>(&BResources::GetResourceInfo), "", py::arg("byType"), py::arg("andIndex"), py::arg("idFound"), py::arg("nameFound"), py::arg("lengthFound"))
9469// .def("GetResourceInfo", py::overload_cast<type_code, int32, const char * *, size_t *>(&BResources::GetResourceInfo), "", py::arg("byType"), py::arg("andID"), py::arg("nameFound"), py::arg("lengthFound"))
9570.def (" GetResourceInfo" , py::overload_cast<type_code,const char *, int32*,size_t *>(&BResources::GetResourceInfo)," " ,py::arg (" byType" ),py::arg (" andName" ),py::arg (" idFound" ),py::arg (" lengthFound" ))