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
Post a Comment