Home | History | Annotate | Download | only in test

Lines Matching refs:byref

53         from ctypes import c_char_p, byref
72 from ctypes import byref
109 # returned by byref(obj), it type(obj) == typ
110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
113 LPINT.from_param(byref(c_int(42)))
115 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22)))
117 self.assertRaises(TypeError, LPINT.from_param, byref(c_long(22)))
118 self.assertRaises(TypeError, LPINT.from_param, byref(c_uint(22)))
122 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
125 LPLPINT.from_param(byref(pointer(c_int(42))))
127 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_short(22))))
129 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_long(22))))
130 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_uint(22))))