HomeSort by relevance Sort by last modified time
    Searched refs:c_char_p (Results 1 - 25 of 164) sorted by null

1 2 3 4 5 6 7

  /external/python/cpython2/Lib/ctypes/test/
test_returnfuncptrs.py 14 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)(
test_prototypes.py 8 # 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...]
test_stringptr.py 32 _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
test_parameters.py 25 from ctypes import c_void_p, c_char_p
32 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref
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.from_param with a c_char_p instanc
    [all...]
test_internals.py 34 cs = c_char_p(s)
68 _fields_ = [("a", c_char_p), ("b", c_char_p)]
  /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/
test_returnfuncptrs.py 14 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)(
test_prototypes.py 7 # func.restype = c_char_p
8 # func(c_char_p("123"))
14 # argument tuple (c_char_p("123"), ) is destroyed after the function
18 # the c_char_p("123") object would already have a zero refcount,
80 func.argtypes = c_char_p,
91 func.restype = c_char_p
96 self.assertEqual(None, func(c_char_p(None)))
97 self.assertEqual("123", func(c_char_p("123")))
106 func.restype = c_char_p
107 func.argtypes = c_char_p,
    [all...]
test_stringptr.py 32 _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
test_parameters.py 24 from ctypes import c_void_p, c_char_p
31 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref
55 # c_char_p.from_param on a Python String packs the string
58 self.assertTrue(c_char_p.from_param(s)._obj is 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.from_param with a c_char_p instanc
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
test_returnfuncptrs.py 14 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)(
test_prototypes.py 7 # func.restype = c_char_p
8 # func(c_char_p("123"))
14 # argument tuple (c_char_p("123"), ) is destroyed after the function
18 # the c_char_p("123") object would already have a zero refcount,
80 func.argtypes = c_char_p,
91 func.restype = c_char_p
96 self.assertEqual(None, func(c_char_p(None)))
97 self.assertEqual("123", func(c_char_p("123")))
106 func.restype = c_char_p
107 func.argtypes = c_char_p,
    [all...]
test_stringptr.py 32 _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
test_parameters.py 24 from ctypes import c_void_p, c_char_p
31 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref
55 # c_char_p.from_param on a Python String packs the string
58 self.assertTrue(c_char_p.from_param(s)._obj is 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.from_param with a c_char_p instanc
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_returnfuncptrs.py 14 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)(
test_prototypes.py 7 # func.restype = c_char_p
8 # func(c_char_p("123"))
14 # argument tuple (c_char_p("123"), ) is destroyed after the function
18 # the c_char_p("123") object would already have a zero refcount,
80 func.argtypes = c_char_p,
91 func.restype = c_char_p
96 self.assertEqual(None, func(c_char_p(None)))
97 self.assertEqual("123", func(c_char_p("123")))
106 func.restype = c_char_p
107 func.argtypes = c_char_p,
    [all...]
test_stringptr.py 32 _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
test_parameters.py 24 from ctypes import c_void_p, c_char_p
31 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref
55 # c_char_p.from_param on a Python String packs the string
58 self.assertTrue(c_char_p.from_param(s)._obj is 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.from_param with a c_char_p instanc
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_returnfuncptrs.py 14 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)(
test_prototypes.py 7 # func.restype = c_char_p
8 # func(c_char_p("123"))
14 # argument tuple (c_char_p("123"), ) is destroyed after the function
18 # the c_char_p("123") object would already have a zero refcount,
80 func.argtypes = c_char_p,
91 func.restype = c_char_p
96 self.assertEqual(None, func(c_char_p(None)))
97 self.assertEqual("123", func(c_char_p("123")))
106 func.restype = c_char_p
107 func.argtypes = c_char_p,
    [all...]
test_stringptr.py 32 _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
test_parameters.py 24 from ctypes import c_void_p, c_char_p
31 class CCHARP(c_char_p):
51 # XXX Replace by c_char_p tests
53 from ctypes import c_char_p, byref
55 # c_char_p.from_param on a Python String packs the string
58 self.assertTrue(c_char_p.from_param(s)._obj is 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.from_param with a c_char_p instanc
    [all...]
  /external/python/cpython3/Lib/ctypes/test/
test_returnfuncptrs.py 13 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
30 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
40 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
58 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
test_parameters.py 24 from ctypes import c_void_p, c_char_p
31 class CCHARP(c_char_p):
50 # XXX Replace by c_char_p tests
52 from ctypes import c_char_p
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.from_param with a c_char_p instanc
    [all...]
test_prototypes.py 8 # 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,
84 func.argtypes = c_char_p,
95 func.restype = c_char_p
100 self.assertEqual(None, func(c_char_p(None)))
101 self.assertEqual(b"123", func(c_char_p(b"123")))
110 func.restype = c_char_p
111 func.argtypes = c_char_p,
    [all...]
  /external/llvm/bindings/python/llvm/
disassembler.py 14 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))
    [all...]

Completed in 743 milliseconds

1 2 3 4 5 6 7