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

/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
31 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.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
[all...]
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
31 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.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
[all...]
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
31 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.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
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
H A Dtest_parameters.py24 from ctypes import c_void_p, c_char_p namespace
31 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.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
[all...]
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/
H A D__init__.py243 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
253 _check_size(c_char_p, "P")
273 POINTER(c_char).from_param = c_char_p.from_param
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/
H A D__init__.py243 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
253 _check_size(c_char_p, "P")
273 POINTER(c_char).from_param = c_char_p.from_param
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/
H A D__init__.py243 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
253 _check_size(c_char_p, "P")
273 POINTER(c_char).from_param = c_char_p.from_param
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/
H A D__init__.py243 class c_char_p(_SimpleCData): class in inherits:_SimpleCData
253 _check_size(c_char_p, "P")
273 POINTER(c_char).from_param = c_char_p.from_param

Completed in 232 milliseconds