Home
last modified time | relevance | path

Searched refs:c_char_p (Results 1 – 25 of 39) sorted by relevance

12

/external/llvm/bindings/python/llvm/
Ddisassembler.py14 from ctypes import c_char_p
76 ptr = lib.LLVMCreateDisasm(c_char_p(triple), c_void_p(None), c_int(0),
101 buf = cast(c_char_p(source), POINTER(c_ubyte))
102 out_str = cast((c_byte * 255)(), c_char_p)
122 source_bytes = c_char_p(source)
123 out_str = cast((c_byte * 255)(), c_char_p)
150 library.LLVMCreateDisasm.argtypes = [c_char_p, c_void_p, c_int,
157 c_uint64, c_uint64, c_char_p, c_size_t]
166 callbacks['symbol_lookup'] = CFUNCTYPE(c_char_p, c_void_p, c_uint64,
168 POINTER(c_char_p))
Dcore.py18 from ctypes import c_char_p
159 out = c_char_p(None)
263 out = c_char_p(None)
492 library.LLVMCreateMemoryBufferWithContentsOfFile.argtypes = [c_char_p,
493 POINTER(c_object_p), POINTER(c_char_p)]
501 library.LLVMModuleCreateWithName.argtypes = [c_char_p]
508 library.LLVMGetDataLayout.restype = c_char_p
510 library.LLVMSetDataLayout.argtypes = [Module, c_char_p]
514 library.LLVMGetTarget.restype = c_char_p
516 library.LLVMSetTarget.argtypes = [Module, c_char_p]
[all …]
Dobject.py80 from ctypes import c_char_p
459 library.LLVMGetSectionName.restype = c_char_p
485 library.LLVMGetSymbolName.restype = c_char_p
503 library.LLVMGetRelocationTypeName.restype = c_char_p
506 library.LLVMGetRelocationValueString.restype = c_char_p
Dbit_reader.py11 from ctypes import c_char_p
/external/python/cpython2/Lib/ctypes/test/
Dtest_returnfuncptrs.py14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
Dtest_prototypes.py81 func.argtypes = c_char_p,
92 func.restype = c_char_p
97 self.assertEqual(None, func(c_char_p(None)))
98 self.assertEqual("123", func(c_char_p("123")))
107 func.restype = c_char_p
108 func.argtypes = c_char_p,
112 self.assertEqual(None, func(c_char_p(None)))
113 self.assertEqual("123", func(c_char_p("123")))
122 func.restype = c_char_p
127 self.assertEqual("123", func(c_char_p("123")))
[all …]
Dtest_parameters.py25 from ctypes import c_void_p, c_char_p
32 class CCHARP(c_char_p):
53 from ctypes import c_char_p, byref
58 self.assertIs(c_char_p.from_param(s)._obj, s)
61 self.assertEqual(c_char_p.from_param(u"123")._obj, "123")
62 self.assertRaises(UnicodeEncodeError, c_char_p.from_param, u"123\377")
64 self.assertRaises(TypeError, c_char_p.from_param, 42)
68 a = c_char_p("123")
69 self.assertIs(c_char_p.from_param(a), a)
Dtest_keeprefs.py14 x = c_char_p()
18 x = c_char_p("spam")
35 _fields_ = [("a", c_char_p),
36 ("b", c_char_p)]
100 _fields_ = [("p", POINTER(c_char_p))]
102 i = c_char_p("abc def")
Dtest_funcptr.py54 LPCTSTR = c_char_p
98 strchr.restype = c_char_p
99 strchr.argtypes = (c_char_p, c_char)
105 strtok.restype = c_char_p
Dtest_cast.py35 array = (c_char_p * 5)()
40 p = cast(array, POINTER(c_char_p))
75 s = c_char_p("hiho")
76 self.assertEqual(cast(cast(s, c_void_p), c_char_p).value,
Dtest_stringptr.py32 _fields_ = [("str", c_char_p)]
46 strchr.restype = c_char_p
50 strchr.argtypes = c_char_p, c_char
Dtest_internals.py34 cs = c_char_p(s)
68 _fields_ = [("a", c_char_p), ("b", c_char_p)]
Dtest_python_api.py24 PyString_FromStringAndSize.argtypes = c_char_p, c_py_ssize_t
30 pythonapi.PyString_FromString.argtypes = (c_char_p,)
72 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
Dtest_random_things.py16 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
67 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
Dtest_pickling.py15 _fields_ = [("str", c_char_p)]
60 c_char_p(),
Dtest_errno.py21 libc_open.argtypes = c_char_p, c_int
38 libc_open.argtypes = c_char_p, c_int
Dtest_unicode.py87 func.argtypes = [ctypes.c_char_p]
88 func.restype = ctypes.c_char_p
Dtest_incomplete.py14 _fields_ = [("name", c_char_p),
Dtest_pointers.py145 func.restype = c_char_p
146 argv = (c_char_p * 2)()
Dtest_values.py54 _fields_ = [("name", c_char_p),
/external/autotest/client/common_lib/
Dsmogcheck_tpm.py29 c_char_p, addressof, c_char, pointer
364 pResult = c_char_p()
400 pResult = c_char_p()
436 pSecret = c_char_p(addressof(well_known_secret))
520 pSecret = c_char_p(addressof(well_known_secret))
568 pSecret = c_char_p(addressof(well_known_secret))
/external/vulkan-validation-layers/
Dvk-layer-introspect.py82 … VkResult, ctypes.c_char_p, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(VkExtensionProperties))
84 …VkResult, VkPhysicalDevice, ctypes.c_char_p, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(VkExt…
90 PFN_vkVoidFunction, VkInstance, ctypes.c_char_p)
92 PFN_vkVoidFunction, VkDevice, ctypes.c_char_p)
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports_osx.py58 cf.CFStringCreateWithCString.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_int32]
62 cf.CFStringGetCStringPtr.restype = ctypes.c_char_p
/external/clang/bindings/python/clang/
Dcindex.py150 _fields_ = [("spelling", c_char_p), ("free", c_int)]
1975 return conf.lib.clang_Type_getOffsetOf(self, c_char_p(fieldname))
2034 _fields_ = [("name", c_char_p), ("contents", c_char_p), ('length', c_ulong)]
2389 args_array = (c_char_p * len(args))(* args)
2911 [c_char_p, POINTER(c_uint)],
2921 [c_object_p, c_char_p],
2956 [TranslationUnit, c_char_p, c_int, c_int, c_void_p, c_int, c_int],
2972 [Index, c_char_p],
3114 c_char_p),
3261 [TranslationUnit, c_char_p],
[all …]
/external/autotest/client/cros/graphics/
Ddrm.py63 ("name", c_char_p),
65 ("date", c_char_p),
67 ("desc", c_char_p),

12