Lines Matching full:c_int
7 _fields_ = [("c_int", c_int)]
15 x = (c_int * 16).from_buffer(a)
18 self.assertEqual(y.c_int, a[0])
29 c_int.from_buffer, a, -1)
40 x = (c_int * 15).from_buffer(a, sizeof(c_int))
43 self.assertRaises(ValueError, lambda: (c_int * 16).from_buffer(a, sizeof(c_int)))
44 self.assertRaises(ValueError, lambda: (c_int * 1).from_buffer(a, 16 * sizeof(c_int)))
48 x = (c_int * 16).from_buffer_copy(a)
51 self.assertEqual(y.c_int, a[0])
62 c_int.from_buffer, a, -1)
72 x = (c_int * 15).from_buffer_copy(a, sizeof(c_int))
76 (c_int * 16).from_buffer_copy, a, sizeof(c_int))
78 (c_int * 1).from_buffer_copy, a, 16 * sizeof(c_int))