Searched refs:c_wchar_p (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Lib/ctypes/test/ |
D | test_prototypes.py | 142 func.restype = c_wchar_p 145 self.assertEqual(None, func(c_wchar_p(None))) 146 self.assertEqual(u"123", func(c_wchar_p(u"123"))) 172 func.restype = c_wchar_p 177 self.assertEqual(None, func(c_wchar_p(None))) 178 self.assertEqual(u"123", func(c_wchar_p(u"123"))) 187 func.restype = c_wchar_p 188 func.argtypes = c_wchar_p, 190 c_wchar_p.from_param(u"123") 194 self.assertEqual(None, func(c_wchar_p(None))) [all …]
|
D | test_parameters.py | 42 from ctypes import c_wchar_p 44 class CWCHARP(c_wchar_p): 73 from ctypes import byref, c_wchar_p 76 self.assertTrue(c_wchar_p.from_param(s)._obj is s) 77 self.assertRaises(TypeError, c_wchar_p.from_param, 42) 80 self.assertEqual(c_wchar_p.from_param("123")._obj, u"123") 81 self.assertRaises(UnicodeDecodeError, c_wchar_p.from_param, "123\377") 83 pa = c_wchar_p.from_param(c_wchar_p(u"123")) 84 self.assertEqual(type(pa), c_wchar_p)
|
D | test_errno.py | 53 GetModuleHandle.argtypes = [c_wchar_p] 66 GetModuleHandle.argtypes = [c_wchar_p]
|
D | test_cast.py | 81 s = c_wchar_p("hiho") 82 self.assertEqual(cast(cast(s, c_void_p), c_wchar_p).value,
|
D | test_pickling.py | 61 c_wchar_p(),
|
D | test_unicode.py | 13 cls.wcslen.argtypes = [ctypes.c_wchar_p]
|
/external/python/cpython2/Lib/ctypes/ |
D | wintypes.py | 34 LPCOLESTR = LPOLESTR = OLESTR = c_wchar_p 35 LPCWSTR = LPWSTR = c_wchar_p
|
D | __init__.py | 268 POINTER(c_wchar).from_param = c_wchar_p.from_param 288 class c_wchar_p(_SimpleCData): class
|
/external/python/cpython2/Doc/library/ |
D | ctypes.rst | 258 | :class:`c_wchar_p` | :c:type:`wchar_t *` (NUL terminated) | unicode or ``None`` | 290 :class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they 2356 .. class:: c_wchar_p
|
/external/python/cpython2/Misc/ |
D | NEWS | 11177 ctypes.c_wchar_p when they point to an invalid location. As a
|