Searched refs:c_char_p (Results 1 - 25 of 36) sorted by relevance

12

/external/python/cpython2/Lib/ctypes/test/
H A 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)(
H A Dtest_prototypes.py8 # func.restype = c_char_p
9 # func(c_char_p("123"))
15 # argument tuple (c_char_p("123"), ) is destroyed after the function
19 # the c_char_p("123") object would already have a zero refcount,
81 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,
[all...]
H 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")
H A Dtest_stringptr.py32 _fields_ = [("str", c_char_p)]
35 # c_char_p and Python string is compatible
36 # c_char_p and c_buffer is NOT compatible
46 strchr.restype = c_char_p
48 # c_char_p and Python string is compatible
49 # c_char_p and c_buffer are now compatible
50 strchr.argtypes = c_char_p, c_char
H A 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,
H A 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
107 ## strtok.argtypes = (c_char_p, c_char_p)
108 ## strtok.argtypes = (c_string, c_char_p)
H A Dtest_incomplete.py14 _fields_ = [("name", c_char_p),
H A Dtest_parameters.py25 from ctypes import c_void_p, c_char_p namespace
32 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref namespace
55 # c_char_p.from_param on a Python String packs the string
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)
66 # calling c_char_p
[all...]
H A Dtest_internals.py34 cs = c_char_p(s)
68 _fields_ = [("a", c_char_p), ("b", c_char_p)]
H A 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
H A Dtest_errno.py21 libc_open.argtypes = c_char_p, c_int
38 libc_open.argtypes = c_char_p, c_int
H A Dtest_pickling.py15 _fields_ = [("str", c_char_p)]
60 c_char_p(),
H A Dtest_random_things.py16 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
67 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
H A Dtest_values.py54 _fields_ = [("name", c_char_p),
H A Dtest_loading.py105 windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
H A Dtest_memfunctions.py42 self.assertEqual(cast(a, c_char_p).value, "abcdef")
H A Dtest_pointers.py145 func.restype = c_char_p
146 argv = (c_char_p * 2)()
H A Dtest_unicode.py87 func.argtypes = [ctypes.c_char_p]
88 func.restype = ctypes.c_char_p
/external/llvm/bindings/python/llvm/
H A Ddisassembler.py14 from ctypes import c_char_p namespace
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))
[all...]
H A Dbit_reader.py11 from ctypes import c_char_p namespace
H A Dcore.py18 from ctypes import c_char_p namespace
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...]
H A Dobject.py80 from ctypes import c_char_p namespace
459 library.LLVMGetSectionName.restype = c_char_p
465 # Can't use c_char_p here as it isn't a NUL-terminated string.
485 library.LLVMGetSymbolName.restype = c_char_p
503 library.LLVMGetRelocationTypeName.restype = c_char_p
506 library.LLVMGetRelocationValueString.restype = c_char_p
/external/autotest/client/common_lib/
H A Dsmogcheck_tpm.py29 c_char_p, addressof, c_char, pointer namespace
136 pResult: a c_char_p, pointer to result.
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/chromium-trace/catapult/third_party/pyserial/serial/tools/
H A 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/vulkan-validation-layers/
H A 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(VkExtensionProperties))
90 PFN_vkVoidFunction, VkInstance, ctypes.c_char_p)
92 PFN_vkVoidFunction, VkDevice, ctypes.c_char_p)

Completed in 249 milliseconds

12