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

1234

/prebuilts/gdb/darwin-x86/lib/python2.7/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.py7 # 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...]
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)]
99 _fields_ = [("p", POINTER(c_char_p))]
101 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.py34 array = (c_char_p * 5)()
39 p = cast(array, POINTER(c_char_p))
74 s = c_char_p("hiho")
75 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),
/prebuilts/gdb/linux-x86/lib/python2.7/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.py7 # 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...]
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)]
99 _fields_ = [("p", POINTER(c_char_p))]
101 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.py34 array = (c_char_p * 5)()
39 p = cast(array, POINTER(c_char_p))
74 s = c_char_p("hiho")
75 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),
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/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.py7 # 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...]
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)]
99 _fields_ = [("p", POINTER(c_char_p))]
101 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.py34 array = (c_char_p * 5)()
39 p = cast(array, POINTER(c_char_p))
74 s = c_char_p("hiho")
75 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),
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/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.py7 # 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...]
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)]
99 _fields_ = [("p", POINTER(c_char_p))]
101 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

Completed in 3113 milliseconds

1234