/third_party/pulseaudio/src/tests/ |
H A D | volume-ui.py | 51 return this._to_name(byref(this)) 54 return this._to_pretty_name(byref(this)) 58 r = this._snprint(s, len(s), byref(this)) 72 return bool(this._can_balance(byref(this))) 75 return bool(this._can_fade(byref(this))) 78 if this._parse(byref(this), s) is None: 120 r = this._snprint(s, len(s), byref(this)) 128 return this._max(byref(this)) 131 return this._scale(byref(this), v) 134 return this._get_balance(byref(thi [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_prototypes.py | 82 positive_address(func(byref(ci)))) 85 self.assertRaises(ArgumentError, func, byref(ci)) 88 self.assertRaises(ArgumentError, func, byref(ci)) 91 self.assertRaises(ArgumentError, func, byref(ci)) 106 self.assertEqual(ord(b"a"), func(byref(ca))[0]) 121 self.assertEqual(ord(b"a"), func(byref(ca))[0]) 136 self.assertEqual(ord(b"a"), func(byref(ca))[0]) 138 func(byref(c_int())) 186 self.assertEqual("a", func(byref(ca))[0]) 204 self.assertEqual("a", func(byref(c [all...] |
H A D | test_parameters.py | 101 # returned by byref(obj), it type(obj) == typ 102 from ctypes import c_short, c_uint, c_int, c_long, POINTER, byref namespace 105 LPINT.from_param(byref(c_int(42))) 107 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22))) 109 self.assertRaises(TypeError, LPINT.from_param, byref(c_long(22))) 110 self.assertRaises(TypeError, LPINT.from_param, byref(c_uint(22))) 114 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref namespace 117 LPLPINT.from_param(byref(pointer(c_int(42)))) 119 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_short(22)))) 121 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointe [all...] |
H A D | test_functions.py | 78 self.assertEqual(None, f(1, 2, byref(result))) 192 arg = byref(v) 196 self.assertRaises(ArgumentError, f, byref(c_short(22))) 200 result = f(byref(c_int(99))) 301 result = dll._testfunc_byval(ptin, byref(ptout)) 311 result = dll._testfunc_byval(ptin, byref(ptout))
|
H A D | test_win32.py | 115 self.assertEqual(1, PointInRect(byref(rect), pt)) 123 byref(rect), pt, rect)
|
H A D | test_pointers.py | 32 address = func(byref(i)) 87 ## callback(byref(i)) 153 result = func( byref(argc), argv )
|
H A D | test_structures.py | 633 result = func(byref(test4)) 643 result = func(byref(test4)) 654 result = func(byref(test5)) 694 result = func(byref(test6)) 716 result = func(byref(test7))
|
H A D | test_bitfields.py | 41 self.assertEqual(getattr(b, name), func(byref(b), name.encode('ascii'))) 48 if func(byref(b), name.encode('ascii')) == 999: 54 self.assertEqual(getattr(b, name), func(byref(b), name.encode('ascii')))
|
H A D | test_as_parameter.py | 148 result = dll._testfunc_byval(ptin, byref(ptout)) 158 result = dll._testfunc_byval(self.wrap(ptin), byref(ptout))
|
H A D | test_numbers.py | 22 ArgType = type(byref(c_int(0))) 100 # calling byref returns also a PyCArgObject instance 102 parm = byref(t())
|
H A D | test_strings.py | 93 repr(byref(c_wchar("x")))
|
/third_party/python/PC/ |
H A D | validate_ucrtbase.py | 8 from ctypes import (c_buffer, POINTER, byref, create_unicode_buffer, namespace 70 if not version.VerQueryValueW(ver_block, "", byref(pvi), byref(DWORD())):
|
/third_party/python/Lib/ctypes/ |
H A D | __init__.py | 140 from _ctypes import sizeof, byref, addressof, alignment, resize namespace
|
/third_party/python/PC/layout/support/ |
H A D | appxmanifest.py | 213 pid, ctypes.byref(result_len), result
|
/third_party/python/Modules/_ctypes/ |
H A D | callproc.c | 1705 "byref(C instance[, offset=0]) -> byref-object\n" 1714 byref(PyObject *self, PyObject *args) in byref() function 1721 if (!PyArg_UnpackTuple(args, "byref", 1, 2, in byref() 1731 "byref() argument must be a ctypes instance, not '%s'", in byref() 2031 {"byref", byref, METH_VARARGS, byref_doc},
|
/third_party/python/Lib/test/support/ |
H A D | __init__.py | 242 ctypes.byref(uof), 244 ctypes.byref(needed))
|
/third_party/node/tools/gyp/pylib/gyp/generator/ |
H A D | ninja.py | 2112 ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ |
H A D | ninja.py | 2109 ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
|
/third_party/python/Lib/test/ |
H A D | test_os.py | 2908 ok = kernel.GetProcessHandleCount(hproc, ctypes.byref(handle_count)) 2933 ok = kernel.GetProcessHandleCount(hproc, ctypes.byref(handle_count))
|