Home
last modified time | relevance | path

Searched refs:c_wchar_p (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Lib/ctypes/test/
Dtest_prototypes.py142 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 …]
Dtest_parameters.py42 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)
Dtest_errno.py53 GetModuleHandle.argtypes = [c_wchar_p]
66 GetModuleHandle.argtypes = [c_wchar_p]
Dtest_cast.py81 s = c_wchar_p("hiho")
82 self.assertEqual(cast(cast(s, c_void_p), c_wchar_p).value,
Dtest_pickling.py61 c_wchar_p(),
Dtest_unicode.py13 cls.wcslen.argtypes = [ctypes.c_wchar_p]
/external/python/cpython2/Lib/ctypes/
Dwintypes.py34 LPCOLESTR = LPOLESTR = OLESTR = c_wchar_p
35 LPCWSTR = LPWSTR = c_wchar_p
D__init__.py268 POINTER(c_wchar).from_param = c_wchar_p.from_param
288 class c_wchar_p(_SimpleCData): class
/external/python/cpython2/Doc/library/
Dctypes.rst258 | :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/
DNEWS11177 ctypes.c_wchar_p when they point to an invalid location. As a