Searched defs:c_char_p (Results 1 - 10 of 10) sorted by relevance

/external/llvm/bindings/python/llvm/
H A Dbit_reader.py11 from ctypes import c_char_p namespace
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 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
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...]
/external/python/cpython2/Lib/ctypes/test/
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...]
/external/python/cpython3/Lib/ctypes/test/
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
31 class CCHARP(c_char_p):
50 # XXX Replace by c_char_p tests
52 from ctypes import c_char_p namespace
54 # c_char_p.from_param on a Python String packs the string
57 self.assertIs(c_char_p.from_param(s)._obj, s)
60 self.assertEqual(c_char_p.from_param(b"123")._obj, b"123")
61 self.assertRaises(TypeError, c_char_p.from_param, "123\377")
62 self.assertRaises(TypeError, c_char_p.from_param, 42)
64 # calling c_char_p
[all...]
/external/scapy/scapy/arch/bpf/
H A Dcore.py22 from ctypes import c_int, c_ulong, c_char_p namespace
30 LIBC.ioctl.argtypes = [c_int, c_ulong, c_char_p]
118 ret = LIBC.ioctl(c_int(fd), BIOCSETF, cast(pointer(bp), 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/python/cpython2/Lib/ctypes/
H A D__init__.py240 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
250 _check_size(c_char_p, "P")
270 POINTER(c_char).from_param = c_char_p.from_param
/external/python/cpython3/Lib/ctypes/
H A D__init__.py235 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
239 _check_size(c_char_p, "P")
267 POINTER(c_char).from_param = c_char_p.from_param

Completed in 1634 milliseconds