Home
last modified time | relevance | path

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

/third_party/python/Lib/ctypes/test/
Dtest_prototypes.py145 func.restype = c_wchar_p
148 self.assertEqual(None, func(c_wchar_p(None)))
149 self.assertEqual("123", func(c_wchar_p("123")))
175 func.restype = c_wchar_p
180 self.assertEqual(None, func(c_wchar_p(None)))
181 self.assertEqual("123", func(c_wchar_p("123")))
190 func.restype = c_wchar_p
191 func.argtypes = c_wchar_p,
193 c_wchar_p.from_param("123")
197 self.assertEqual(None, func(c_wchar_p(None)))
[all …]
Dtest_parameters.py42 from ctypes import c_wchar_p
44 class CWCHARP(c_wchar_p):
72 from ctypes import c_wchar_p
74 c_wchar_p.from_param("123")
76 self.assertRaises(TypeError, c_wchar_p.from_param, 42)
77 self.assertRaises(TypeError, c_wchar_p.from_param, b"123\377")
79 pa = c_wchar_p.from_param(c_wchar_p("123"))
80 self.assertEqual(type(pa), c_wchar_p)
223 c_wchar_p,
244 self.assertRegex(repr(c_wchar_p.from_param('hihi')), r"^<cparam 'Z' \(0x[A-Fa-f0-9]+\)>$")
[all …]
Dtest_errno.py49 GetModuleHandle.argtypes = [c_wchar_p]
62 GetModuleHandle.argtypes = [c_wchar_p]
Dtest_unicode.py12 wcslen.argtypes = [ctypes.c_wchar_p]
31 _fields_ = [("unicode", ctypes.c_wchar_p)]
Dtest_bytes.py35 c_wchar_p("foo bar")
36 self.assertRaises(TypeError, c_wchar_p, b"foo bar")
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(),
/third_party/python/PC/layout/support/
Dappxmanifest.py202 ("name", ctypes.c_wchar_p),
203 ("publisher", ctypes.c_wchar_p),
204 ("resourceId", ctypes.c_wchar_p),
205 ("publisherId", ctypes.c_wchar_p),
/third_party/python/Lib/ctypes/
Dwintypes.py35 LPCOLESTR = LPOLESTR = OLESTR = ctypes.c_wchar_p
36 LPCWSTR = LPWSTR = ctypes.c_wchar_p
D__init__.py254 class c_wchar_p(_SimpleCData): class
268 POINTER(c_wchar).from_param = c_wchar_p.from_param
/third_party/python/Lib/test/
Dtest_ntpath.py35 GSPN.argtypes = [ctypes.c_wchar_p, ctypes.c_wchar_p, ctypes.c_uint32]
Dtest_embed.py1371 func.restype = ctypes.c_wchar_p
/third_party/python/Doc/library/
Dctypes.rst258 | :class:`c_wchar_p` | :c:type:`wchar_t *` (NUL terminated) | string or ``None`` |
271 >>> c_wchar_p("Hello, World")
272 c_wchar_p(140018365411392)
290 :class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they
295 >>> c_s = c_wchar_p(s)
297 c_wchar_p(139966785747344)
302 c_wchar_p(139966783348904)
2353 .. class:: c_wchar_p
/third_party/python/Misc/NEWS.d/
D3.10.0b1.rst1358 Fix a regression in the handling of ctypes' :data:`ctypes.c_wchar_p` type: