HomeSort by relevance Sort by last modified time
    Searched refs:c_int (Results 26 - 50 of 93) sorted by null

12 3 4

  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_parameters.py 91 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer namespace
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 namespace
111 LPINT = POINTER(c_int)
113 LPINT.from_param(byref(c_int(42)))
116 if c_int != c_long
122 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace
133 from ctypes import c_short, c_uint, c_int, c_long, POINTER namespace
    [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...]
test_values.py 14 an_integer = c_int.in_dll(ctdll, "an_integer")
22 self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
35 opt = c_int.in_dll(pydll, "Py_OptimizeFlag").value
55 ("size", c_int)]
79 self.assertRaises(ValueError, c_int.in_dll, pydll, "Undefined_Symbol")
test_callbacks.py 50 self.check_type(c_int, 42)
51 self.check_type(c_int, -42)
190 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
194 array = (c_int * 5)(5, 1, 99, 7, 33)
196 libc.qsort(array, len(array), sizeof(c_int), cmp_func)
221 CALLBACK = CFUNCTYPE(c_int, c_int, c_int, c_int, c_int, c_int
    [all...]
test_arrays.py 6 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
71 numarray = ARRAY(c_int, alen)
77 na = numarray(*[c_int()] * alen)
85 na = numarray(*map(c_int, (1, 2, 3, 4, 5)))
90 self.assertTrue(not ARRAY(c_int, 3) is ARRAY(c_int, 4))
91 self.assertTrue(ARRAY(c_int, 3) is ARRAY(c_int, 3))
126 class my_int(c_int):
test_keeprefs.py 6 x = c_int()
10 x = c_int(99)
24 _fields_ = [("a", c_int),
25 ("b", c_int)]
46 _fields_ = [("x", c_int), ("y", c_int)]
69 INTARR = c_int * 3
79 _fields_ = [("x", c_int),
92 i = c_int(42)
107 c_int(99
    [all...]
test_simplesubclasses.py 4 class MyInt(c_int):
40 cb = CFUNCTYPE(c_int, c_int)(func)
test_bitfields.py 9 _fields_ = [("A", c_int, 1),
10 ("B", c_int, 2),
11 ("C", c_int, 3),
12 ("D", c_int, 4),
13 ("E", c_int, 5),
14 ("F", c_int, 6),
15 ("G", c_int, 7),
16 ("H", c_int, 8),
17 ("I", c_int, 9),
49 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong
    [all...]
test_prototypes.py 74 ci = c_int(0)
76 func.argtypes = POINTER(c_int),
134 func(byref(c_int()))
135 func(pointer(c_int()))
136 func((c_int * 3)())
168 func.restype = c_int
208 func.restype = POINTER(c_int)
209 func.argtypes = c_int * 8,
211 func((c_int * 8)(1, 2, 3, 4, 5, 6, 7, 8))
216 CFUNCTYPE(None, c_int * 3)(func
    [all...]
test_byteswap.py 53 self.assertTrue(c_int.__ctype_le__ is c_int)
54 self.assertTrue(c_int.__ctype_be__.__ctype_le__ is c_int)
56 self.assertTrue(c_int.__ctype_be__ is c_int)
57 self.assertTrue(c_int.__ctype_le__.__ctype_be__ is c_int)
59 s = c_int.__ctype_be__(0x12345678)
64 s = c_int.__ctype_le__(0x12345678
    [all...]
test_pickling.py 8 _fields_ = [("a", c_int), ("b", c_double)]
26 c_int(42),
57 prototype = CFUNCTYPE(c_int)
63 pointer(c_int(42)),
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
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...]
test_values.py 14 an_integer = c_int.in_dll(ctdll, "an_integer")
22 self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
35 opt = c_int.in_dll(pydll, "Py_OptimizeFlag").value
55 ("size", c_int)]
79 self.assertRaises(ValueError, c_int.in_dll, pydll, "Undefined_Symbol")
test_callbacks.py 50 self.check_type(c_int, 42)
51 self.check_type(c_int, -42)
190 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
194 array = (c_int * 5)(5, 1, 99, 7, 33)
196 libc.qsort(array, len(array), sizeof(c_int), cmp_func)
221 CALLBACK = CFUNCTYPE(c_int, c_int, c_int, c_int, c_int, c_int
    [all...]
test_arrays.py 6 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
71 numarray = ARRAY(c_int, alen)
77 na = numarray(*[c_int()] * alen)
85 na = numarray(*map(c_int, (1, 2, 3, 4, 5)))
90 self.assertTrue(not ARRAY(c_int, 3) is ARRAY(c_int, 4))
91 self.assertTrue(ARRAY(c_int, 3) is ARRAY(c_int, 3))
126 class my_int(c_int):
test_keeprefs.py 6 x = c_int()
10 x = c_int(99)
24 _fields_ = [("a", c_int),
25 ("b", c_int)]
46 _fields_ = [("x", c_int), ("y", c_int)]
69 INTARR = c_int * 3
79 _fields_ = [("x", c_int),
92 i = c_int(42)
107 c_int(99
    [all...]
test_simplesubclasses.py 4 class MyInt(c_int):
40 cb = CFUNCTYPE(c_int, c_int)(func)
test_bitfields.py 9 _fields_ = [("A", c_int, 1),
10 ("B", c_int, 2),
11 ("C", c_int, 3),
12 ("D", c_int, 4),
13 ("E", c_int, 5),
14 ("F", c_int, 6),
15 ("G", c_int, 7),
16 ("H", c_int, 8),
17 ("I", c_int, 9),
49 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong
    [all...]
test_prototypes.py 74 ci = c_int(0)
76 func.argtypes = POINTER(c_int),
134 func(byref(c_int()))
135 func(pointer(c_int()))
136 func((c_int * 3)())
168 func.restype = c_int
208 func.restype = POINTER(c_int)
209 func.argtypes = c_int * 8,
211 func((c_int * 8)(1, 2, 3, 4, 5, 6, 7, 8))
216 CFUNCTYPE(None, c_int * 3)(func
    [all...]
test_byteswap.py 53 self.assertTrue(c_int.__ctype_le__ is c_int)
54 self.assertTrue(c_int.__ctype_be__.__ctype_le__ is c_int)
56 self.assertTrue(c_int.__ctype_be__ is c_int)
57 self.assertTrue(c_int.__ctype_le__.__ctype_be__ is c_int)
59 s = c_int.__ctype_be__(0x12345678)
64 s = c_int.__ctype_le__(0x12345678
    [all...]
test_pickling.py 8 _fields_ = [("a", c_int), ("b", c_double)]
26 c_int(42),
57 prototype = CFUNCTYPE(c_int)
63 pointer(c_int(42)),
test_init.py 5 _fields_ = [("a", c_int),
6 ("b", c_int)]
  /external/llvm/bindings/python/llvm/
disassembler.py 15 from ctypes import c_int namespace
76 ptr = lib.LLVMCreateDisasm(c_char_p(triple), c_void_p(None), c_int(0),
150 library.LLVMCreateDisasm.argtypes = [c_char_p, c_void_p, c_int,
161 library.LLVMSetDisasmOptions.restype = c_int
164 callbacks['op_info'] = CFUNCTYPE(c_int, c_void_p, c_uint64, c_uint64, c_uint64,
165 c_int, c_void_p)

Completed in 998 milliseconds

12 3 4