Searched refs:c_wchar_p (Results 1 – 14 of 14) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
D | test_prototypes.py | 145 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 …]
|
D | test_parameters.py | 42 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 …]
|
D | test_errno.py | 49 GetModuleHandle.argtypes = [c_wchar_p] 62 GetModuleHandle.argtypes = [c_wchar_p]
|
D | test_unicode.py | 12 wcslen.argtypes = [ctypes.c_wchar_p] 31 _fields_ = [("unicode", ctypes.c_wchar_p)]
|
D | test_bytes.py | 35 c_wchar_p("foo bar") 36 self.assertRaises(TypeError, c_wchar_p, b"foo bar")
|
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(),
|
/third_party/python/PC/layout/support/ |
D | appxmanifest.py | 202 ("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/ |
D | wintypes.py | 35 LPCOLESTR = LPOLESTR = OLESTR = ctypes.c_wchar_p 36 LPCWSTR = LPWSTR = ctypes.c_wchar_p
|
D | __init__.py | 254 class c_wchar_p(_SimpleCData): class 268 POINTER(c_wchar).from_param = c_wchar_p.from_param
|
/third_party/python/Lib/test/ |
D | test_ntpath.py | 35 GSPN.argtypes = [ctypes.c_wchar_p, ctypes.c_wchar_p, ctypes.c_uint32]
|
D | test_embed.py | 1371 func.restype = ctypes.c_wchar_p
|
/third_party/python/Doc/library/ |
D | ctypes.rst | 258 | :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/ |
D | 3.10.0b1.rst | 1358 Fix a regression in the handling of ctypes' :data:`ctypes.c_wchar_p` type:
|