/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/data/ |
infinite_recursion.py | 106 ('p', POINTER(c_ubyte)), 113 ('max', POINTER(c_ubyte)), 114 ('q', POINTER(c_ubyte)), 115 ('pp', POINTER(POINTER(c_ubyte))), 128 ('data', POINTER(c_ubyte)), 139 ('data', POINTER(c_ubyte)), 148 ('enc', POINTER(c_ubyte)), 210 ('asn1_string', POINTER(ASN1_STRING)), 211 ('object', POINTER(ASN1_OBJECT)) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/data/ |
infinite_recursion.py | 106 ('p', POINTER(c_ubyte)), 113 ('max', POINTER(c_ubyte)), 114 ('q', POINTER(c_ubyte)), 115 ('pp', POINTER(POINTER(c_ubyte))), 128 ('data', POINTER(c_ubyte)), 139 ('data', POINTER(c_ubyte)), 148 ('enc', POINTER(c_ubyte)), 210 ('asn1_string', POINTER(ASN1_STRING)), 211 ('object', POINTER(ASN1_OBJECT)) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_pep3118.py | 100 PComplete = POINTER(Complete) 139 (POINTER(c_byte), "&<b", None, POINTER(c_byte)), 140 (POINTER(POINTER(c_long)), "&&<l", None, POINTER(POINTER(c_long))), 146 (POINTER(c_short) * 2, "(2)&<h", (2,), POINTER(c_short)), 147 (POINTER(c_short) * 2 * 3, "(3,2)&<h", (3,2,), POINTER(c_short)) [all...] |
test_wintypes.py | 14 true = POINTER(c_int16)(c_int16(true_value)) 15 value = cast(true, POINTER(wintypes.VARIANT_BOOL)) 26 false = POINTER(c_int16)(c_int16(false_value)) 27 value = cast(false, POINTER(wintypes.VARIANT_BOOL))
|
test_memfunctions.py | 41 self.assertEqual(cast(a, POINTER(c_byte))[:7], 43 self.assertEqual(cast(a, POINTER(c_byte))[:7:], 45 self.assertEqual(cast(a, POINTER(c_byte))[6:-1:-1], 47 self.assertEqual(cast(a, POINTER(c_byte))[:7:2], 49 self.assertEqual(cast(a, POINTER(c_byte))[:7:7],
|
test_cast.py | 10 # casting an array to a pointer works. 11 ptr = cast(array, POINTER(c_int)) 15 ptr = cast(array, POINTER(c_short)) 27 ptr = cast(c_void_p(address), POINTER(c_int)) 30 ptr = cast(address, POINTER(c_int)) 39 p = cast(array, POINTER(c_char_p)) 51 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int))
|
test_stringptr.py | 12 _fields_ = [("str", POINTER(c_char))] 15 # NULL pointer access 23 # POINTER(c_char) and Python string is NOT compatible 24 # POINTER(c_char) and c_buffer() is compatible 54 # POINTER(c_char) and Python string is NOT compatible 55 # POINTER(c_char) and c_buffer() is compatible 56 strchr.argtypes = POINTER(c_char), c_char 65 strchr.restype = POINTER(c_char)
|
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))) 103 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42))) 104 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42))) 105 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 108 # The from_param class method of POINTER(typ) classes accepts what is 110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byre namespace 122 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace [all...] |
test_pointers.py | 15 class A(POINTER(c_ulong)): 18 POINTER(c_ulong)(c_ulong(22)) 19 # Pointer can't set contents: has no _type_ 28 ## func.argtypes = (POINTER(c_int),) 32 func.restype = POINTER(c_int) 33 res = func(pointer(i)) 42 func.restype = POINTER(c_int) 43 func.argtypes = (POINTER(c_int),) 45 res = func(pointer(i)) 60 # a function type receiving a pointer [all...] |
test_array_in_pointer.py | 17 _fields_ = [("pvalues", POINTER(Value))] 24 # create a container, which holds a pointer to the pvalues array. 31 # set the values of the array through the pointer: 50 ptr = cast(val_array, POINTER(Value)) 51 # set the values of the array through the pointer:
|
test_libc.py | 17 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_pep3118.py | 100 PComplete = POINTER(Complete) 139 (POINTER(c_byte), "&<b", None, POINTER(c_byte)), 140 (POINTER(POINTER(c_long)), "&&<l", None, POINTER(POINTER(c_long))), 146 (POINTER(c_short) * 2, "(2)&<h", (2,), POINTER(c_short)), 147 (POINTER(c_short) * 2 * 3, "(3,2)&<h", (3,2,), POINTER(c_short)) [all...] |
test_wintypes.py | 14 true = POINTER(c_int16)(c_int16(true_value)) 15 value = cast(true, POINTER(wintypes.VARIANT_BOOL)) 26 false = POINTER(c_int16)(c_int16(false_value)) 27 value = cast(false, POINTER(wintypes.VARIANT_BOOL))
|
test_memfunctions.py | 41 self.assertEqual(cast(a, POINTER(c_byte))[:7], 43 self.assertEqual(cast(a, POINTER(c_byte))[:7:], 45 self.assertEqual(cast(a, POINTER(c_byte))[6:-1:-1], 47 self.assertEqual(cast(a, POINTER(c_byte))[:7:2], 49 self.assertEqual(cast(a, POINTER(c_byte))[:7:7],
|
test_cast.py | 10 # casting an array to a pointer works. 11 ptr = cast(array, POINTER(c_int)) 15 ptr = cast(array, POINTER(c_short)) 27 ptr = cast(c_void_p(address), POINTER(c_int)) 30 ptr = cast(address, POINTER(c_int)) 39 p = cast(array, POINTER(c_char_p)) 51 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int))
|
test_stringptr.py | 12 _fields_ = [("str", POINTER(c_char))] 15 # NULL pointer access 23 # POINTER(c_char) and Python string is NOT compatible 24 # POINTER(c_char) and c_buffer() is compatible 54 # POINTER(c_char) and Python string is NOT compatible 55 # POINTER(c_char) and c_buffer() is compatible 56 strchr.argtypes = POINTER(c_char), c_char 65 strchr.restype = POINTER(c_char)
|
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))) 103 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42))) 104 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42))) 105 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 108 # The from_param class method of POINTER(typ) classes accepts what is 110 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byre namespace 122 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace [all...] |
test_pointers.py | 15 class A(POINTER(c_ulong)): 18 POINTER(c_ulong)(c_ulong(22)) 19 # Pointer can't set contents: has no _type_ 28 ## func.argtypes = (POINTER(c_int),) 32 func.restype = POINTER(c_int) 33 res = func(pointer(i)) 42 func.restype = POINTER(c_int) 43 func.argtypes = (POINTER(c_int),) 45 res = func(pointer(i)) 60 # a function type receiving a pointer [all...] |
test_array_in_pointer.py | 17 _fields_ = [("pvalues", POINTER(Value))] 24 # create a container, which holds a pointer to the pvalues array. 31 # set the values of the array through the pointer: 50 ptr = cast(val_array, POINTER(Value)) 51 # set the values of the array through the pointer:
|
test_libc.py | 17 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
|
/hardware/intel/common/libmix/videoencoder/ |
VideoEncoderLog.h | 56 #define CHECK_NULL_RETURN_IFFAIL(POINTER)\ 57 if (POINTER == NULL) { \ 58 LOG_E("Invalid pointer\n"); \
|
/external/llvm/bindings/python/llvm/ |
bit_reader.py | 9 from ctypes import POINTER 28 library.LLVMParseBitcode.argtypes = [MemoryBuffer, POINTER(c_object_p), POINTER(c_char_p)]
|
disassembler.py | 11 from ctypes import POINTER 101 buf = cast(c_char_p(source), POINTER(c_ubyte)) 126 buf = cast(source_bytes, POINTER(c_ubyte * len(source))).contents 131 b = cast(addressof(buf) + offset, POINTER(c_ubyte)) 156 library.LLVMDisasmInstruction.argtypes = [Disassembler, POINTER(c_ubyte), 167 POINTER(c_uint64), c_uint64, 168 POINTER(c_char_p))
|
/frameworks/native/opengl/libs/GLES_trace/tools/ |
testgenapi.py | 60 self.assertEqual(args, [("a", DataType.POINTER)]) 63 self.assertEqual(args, [("exponent", DataType.POINTER)])
|
/prebuilts/misc/common/swig/include/2.0.11/python/ |
file.i | 41 %typemaps_asval(%checkcode(POINTER), SWIG_AsValFilePtr, "SWIG_AsValFilePtr", FILE*);
|