HomeSort by relevance Sort by last modified time
    Searched refs:c_int (Results 51 - 75 of 235) sorted by null

1 23 4 5 6 7 8 910

  /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
test_pointers.py 6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
27 i = c_int(12345678)
28 ## func.argtypes = (POINTER(c_int),)
30 self.assertEqual(c_int.from_address(address).value, 12345678)
32 func.restype = POINTER(c_int)
41 i = c_int(87654)
42 func.restype = POINTER(c_int)
43 func.argtypes = (POINTER(c_int),)
56 res.contents = c_int(12321)
61 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int)
    [all...]
test_random_things.py 50 cb = CFUNCTYPE(c_int, c_int)(callback_func)
56 cb = CFUNCTYPE(c_int, c_int)(callback_func)
62 cb = CFUNCTYPE(c_int, c_double)(callback_func)
68 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
test_structures.py 9 _fields_ = [("a", c_int)]
12 _fields_ = [("b", c_int)]
17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
20 self.assertEqual(X._fields_, [("a", c_int)])
21 self.assertEqual(Y._fields_, [("b", c_int)])
22 self.assertEqual(Z._fields_, [("a", c_int)])
28 X._fields_ = [("a", c_int)]
33 Y._fields_ = [("b", c_int)]
    [all...]
test_parameters.py 91 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
92 LPINT = POINTER(c_int)
94 ## p = pointer(c_int(42))
96 x = LPINT.from_param(pointer(c_int(42)))
98 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
102 if c_int != c_long:
110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
111 LPINT = POINTER(c_int)
113 LPINT.from_param(byref(c_int(42)))
116 if c_int != c_long
    [all...]
test_internals.py 27 ci = c_int(i)
40 _fields_ = [("a", c_int), ("b", c_int)]
52 _fields_ = [("a", c_int), ("b", c_int)]
90 _fields_ = [("data", POINTER(c_int))]
92 A = c_int*4
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_pointers.py 6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
27 i = c_int(12345678)
28 ## func.argtypes = (POINTER(c_int),)
30 self.assertEqual(c_int.from_address(address).value, 12345678)
32 func.restype = POINTER(c_int)
41 i = c_int(87654)
42 func.restype = POINTER(c_int)
43 func.argtypes = (POINTER(c_int),)
56 res.contents = c_int(12321)
61 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int)
    [all...]
test_random_things.py 50 cb = CFUNCTYPE(c_int, c_int)(callback_func)
56 cb = CFUNCTYPE(c_int, c_int)(callback_func)
62 cb = CFUNCTYPE(c_int, c_double)(callback_func)
68 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
test_structures.py 9 _fields_ = [("a", c_int)]
12 _fields_ = [("b", c_int)]
17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
20 self.assertEqual(X._fields_, [("a", c_int)])
21 self.assertEqual(Y._fields_, [("b", c_int)])
22 self.assertEqual(Z._fields_, [("a", c_int)])
28 X._fields_ = [("a", c_int)]
33 Y._fields_ = [("b", c_int)]
    [all...]
test_parameters.py 91 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
92 LPINT = POINTER(c_int)
94 ## p = pointer(c_int(42))
96 x = LPINT.from_param(pointer(c_int(42)))
98 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
102 if c_int != c_long:
110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
111 LPINT = POINTER(c_int)
113 LPINT.from_param(byref(c_int(42)))
116 if c_int != c_long
    [all...]
test_internals.py 27 ci = c_int(i)
40 _fields_ = [("a", c_int), ("b", c_int)]
52 _fields_ = [("a", c_int), ("b", c_int)]
90 _fields_ = [("data", POINTER(c_int))]
92 A = c_int*4
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_pointers.py 6 ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
27 i = c_int(12345678)
28 ## func.argtypes = (POINTER(c_int),)
30 self.assertEqual(c_int.from_address(address).value, 12345678)
32 func.restype = POINTER(c_int)
41 i = c_int(87654)
42 func.restype = POINTER(c_int)
43 func.argtypes = (POINTER(c_int),)
56 res.contents = c_int(12321)
61 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int)
    [all...]
test_random_things.py 50 cb = CFUNCTYPE(c_int, c_int)(callback_func)
56 cb = CFUNCTYPE(c_int, c_int)(callback_func)
62 cb = CFUNCTYPE(c_int, c_double)(callback_func)
68 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
test_structures.py 9 _fields_ = [("a", c_int)]
12 _fields_ = [("b", c_int)]
17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
20 self.assertEqual(X._fields_, [("a", c_int)])
21 self.assertEqual(Y._fields_, [("b", c_int)])
22 self.assertEqual(Z._fields_, [("a", c_int)])
28 X._fields_ = [("a", c_int)]
33 Y._fields_ = [("b", c_int)]
    [all...]
test_parameters.py 91 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
92 LPINT = POINTER(c_int)
94 ## p = pointer(c_int(42))
96 x = LPINT.from_param(pointer(c_int(42)))
98 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
102 if c_int != c_long:
110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
111 LPINT = POINTER(c_int)
113 LPINT.from_param(byref(c_int(42)))
116 if c_int != c_long
    [all...]
test_internals.py 27 ci = c_int(i)
40 _fields_ = [("a", c_int), ("b", c_int)]
52 _fields_ = [("a", c_int), ("b", c_int)]
90 _fields_ = [("data", POINTER(c_int))]
92 A = c_int*4
  /external/python/cpython2/Lib/ctypes/test/
test_random_things.py 49 cb = CFUNCTYPE(c_int, c_int)(callback_func)
55 cb = CFUNCTYPE(c_int, c_int)(callback_func)
61 cb = CFUNCTYPE(c_int, c_double)(callback_func)
67 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
test_structures.py 10 _fields_ = [("a", c_int)]
13 _fields_ = [("b", c_int)]
18 self.assertEqual(sizeof(X), sizeof(c_int))
19 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
20 self.assertEqual(sizeof(Z), sizeof(c_int))
21 self.assertEqual(X._fields_, [("a", c_int)])
22 self.assertEqual(Y._fields_, [("b", c_int)])
23 self.assertEqual(Z._fields_, [("a", c_int)])
29 X._fields_ = [("a", c_int)]
34 Y._fields_ = [("b", c_int)]
    [all...]
test_parameters.py 87 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
88 LPINT = POINTER(c_int)
90 ## p = pointer(c_int(42))
92 x = LPINT.from_param(pointer(c_int(42)))
94 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
98 if c_int != c_long:
106 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
107 LPINT = POINTER(c_int)
109 LPINT.from_param(byref(c_int(42)))
112 if c_int != c_long
    [all...]
test_internals.py 27 ci = c_int(i)
40 _fields_ = [("a", c_int), ("b", c_int)]
52 _fields_ = [("a", c_int), ("b", c_int)]
90 _fields_ = [("data", POINTER(c_int))]
92 A = c_int*4
test_cast.py 9 array = (c_int * 3)(42, 17, 2)
12 ptr = cast(array, POINTER(c_int))
15 if 2*sizeof(c_short) == sizeof(c_int):
25 array = (c_int * 3)(42, 17, 2)
28 ptr = cast(c_void_p(address), POINTER(c_int))
31 ptr = cast(address, POINTER(c_int))
52 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int))
57 c_int()
67 c_int()
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/
test_random_things.py 50 cb = CFUNCTYPE(c_int, c_int)(callback_func)
56 cb = CFUNCTYPE(c_int, c_int)(callback_func)
62 cb = CFUNCTYPE(c_int, c_double)(callback_func)
68 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
test_structures.py 9 _fields_ = [("a", c_int)]
12 _fields_ = [("b", c_int)]
17 self.assertEqual(sizeof(X), sizeof(c_int))
18 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
19 self.assertEqual(sizeof(Z), sizeof(c_int))
20 self.assertEqual(X._fields_, [("a", c_int)])
21 self.assertEqual(Y._fields_, [("b", c_int)])
22 self.assertEqual(Z._fields_, [("a", c_int)])
28 X._fields_ = [("a", c_int)]
33 Y._fields_ = [("b", c_int)]
    [all...]
test_parameters.py 91 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
92 LPINT = POINTER(c_int)
94 ## p = pointer(c_int(42))
96 x = LPINT.from_param(pointer(c_int(42)))
98 self.assertEqual(LPINT(c_int(42)).contents.value, 42)
102 if c_int != c_long:
110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
111 LPINT = POINTER(c_int)
113 LPINT.from_param(byref(c_int(42)))
116 if c_int != c_long
    [all...]
test_internals.py 27 ci = c_int(i)
40 _fields_ = [("a", c_int), ("b", c_int)]
52 _fields_ = [("a", c_int), ("b", c_int)]
90 _fields_ = [("data", POINTER(c_int))]
92 A = c_int*4
test_cast.py 8 array = (c_int * 3)(42, 17, 2)
11 ptr = cast(array, POINTER(c_int))
14 if 2*sizeof(c_short) == sizeof(c_int):
24 array = (c_int * 3)(42, 17, 2)
27 ptr = cast(c_void_p(address), POINTER(c_int))
30 ptr = cast(address, POINTER(c_int))
51 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int))
56 c_int()
66 c_int()
    [all...]

Completed in 254 milliseconds

1 23 4 5 6 7 8 910