python - how to get c_void_p to actual structure data -


i'm using types.c_void_p return type 1 of c library function. how retrieve actual data returned data c_void_p.

class intint(structure):     _fields_ = [('v', c_int),                 ('value', c_int)] class h(object):     .....      def get(self, key):         ....         key = self.pack(key)         self._get = self.clib.get         self._get.restype = c_void_p         self._get.argtypes = [c_void_p, c_void_p]         item = self._get(key) 

now want retrieve intint structure result item. please me how it.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -