/external/llvm/bindings/python/llvm/ |
H A D | bit_reader.py | 11 from ctypes import c_char_p namespace
|
H A D | disassembler.py | 14 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 D | object.py | 80 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 D | core.py | 18 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 D | test_parameters.py | 25 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 D | test_parameters.py | 24 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 D | core.py | 22 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 D | smogcheck_tpm.py | 29 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__.py | 240 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__.py | 235 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
|