Searched refs:c_wchar (Results 1 - 19 of 19) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
H A D | test_bytes.py | 20 x = c_wchar("x") 21 self.assertRaises(TypeError, c_wchar, b"x") 25 c_wchar.from_param("x") 26 self.assertRaises(TypeError, c_wchar.from_param, b"x") 27 (c_wchar * 3)("a", "b", "c") 28 self.assertRaises(TypeError, c_wchar * 3, b"a", b"b", b"c") 49 _fields_ = [("a", c_wchar * 3)]
|
H A D | test_strings.py | 64 @need_symbol('c_wchar') 67 BUF = c_wchar * 4 81 @unittest.skipIf(sizeof(c_wchar) < 4, 85 w = c_wchar(u) 89 @need_symbol('c_wchar') 92 c_wchar("x") 93 repr(byref(c_wchar("x"))) 94 c_wchar("x")
|
H A D | test_buffers.py | 30 @need_symbol('c_wchar') 34 self.assertEqual(sizeof(b), 32 * sizeof(c_wchar)) 39 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) 50 @need_symbol('c_wchar') 54 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) 63 @need_symbol('c_wchar') 65 expected = 5 if sizeof(c_wchar) == 2 else 3
|
H A D | test_slicing.py | 129 @need_symbol('c_wchar') 134 dll.my_wcsdup.restype = POINTER(c_wchar) 135 dll.my_wcsdup.argtypes = POINTER(c_wchar), 148 if sizeof(c_wchar) == sizeof(c_short): 150 elif sizeof(c_wchar) == sizeof(c_int): 152 elif sizeof(c_wchar) == sizeof(c_long): 155 self.skipTest('Pointers to c_wchar are not supported')
|
H A D | test_prototypes.py | 43 return (c_wchar * n)(*init) 164 @need_symbol('c_wchar') 176 func.argtypes = POINTER(c_wchar), 184 ca = c_wchar("a") 202 ca = c_wchar("a")
|
H A D | test_pickling.py | 72 self.dumps(c_wchar("x"))
|
H A D | test_arrays.py | 79 a = (c_wchar * 5)() 123 sz = (c_wchar * 3).from_address(addressof(p))
|
H A D | test_memfunctions.py | 70 result = memmove(a, p, len(p) * sizeof(c_wchar))
|
H A D | test_byteswap.py | 196 for typ in c_wchar, c_void_p, POINTER(c_int): 330 for typ in c_wchar, c_void_p, POINTER(c_int):
|
H A D | test_functions.py | 57 @need_symbol('c_wchar') 60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double] 65 @need_symbol('c_wchar') 69 f.restype = c_wchar
|
H A D | test_parameters.py | 208 c_wchar, 228 self.assertRegex(repr(c_wchar.from_param('a')), r"^<cparam 'u' at 0x[A-Fa-f0-9]+>$")
|
H A D | test_as_parameter.py | 21 @need_symbol('c_wchar') 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
|
H A D | test_bitfields.py | 143 @need_symbol('c_wchar') 145 result = self.fail_fields(("a", c_wchar, 1)) 147 (TypeError, 'bit fields not allowed for type c_wchar'))
|
H A D | test_structures.py | 306 @need_symbol('c_wchar') 309 _fields_ = [("name", c_wchar * 12),
|
/third_party/python/Lib/ctypes/ |
H A D | __init__.py | 261 class c_wchar(_SimpleCData): class 270 POINTER(c_wchar).from_param = c_wchar_p.from_param 282 if sizeof(c_wchar) == 2: 292 buftype = c_wchar * size 298 buftype = c_wchar * init
|
H A D | wintypes.py | 10 WCHAR = ctypes.c_wchar
|
/third_party/python/Lib/test/test_capi/ |
H A D | test_unicode.py | 280 from ctypes import c_wchar, sizeof namespace 303 if sizeof(c_wchar) == 2: 306 else: # sizeof(c_wchar) == 4 319 from ctypes import c_wchar, sizeof namespace 330 if sizeof(c_wchar) == 2: 332 else: # sizeof(c_wchar) == 4
|
/third_party/python/Lib/multiprocessing/ |
H A D | sharedctypes.py | 26 'c': ctypes.c_char, 'u': ctypes.c_wchar,
|
/third_party/python/Lib/test/ |
H A D | test_codecs.py | 29 SIZEOF_WCHAR_T = ctypes.sizeof(ctypes.c_wchar)
|
Completed in 14 milliseconds