Home
last modified time | relevance | path

Searched refs:byref (Results 1 - 19 of 19) sorted by relevance

/third_party/pulseaudio/src/tests/
H A Dvolume-ui.py51 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 Dtest_prototypes.py82 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 Dtest_parameters.py101 # 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 Dtest_functions.py78 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 Dtest_win32.py115 self.assertEqual(1, PointInRect(byref(rect), pt))
123 byref(rect), pt, rect)
H A Dtest_pointers.py32 address = func(byref(i))
87 ## callback(byref(i))
153 result = func( byref(argc), argv )
H A Dtest_structures.py633 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 Dtest_bitfields.py41 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 Dtest_as_parameter.py148 result = dll._testfunc_byval(ptin, byref(ptout))
158 result = dll._testfunc_byval(self.wrap(ptin), byref(ptout))
H A Dtest_numbers.py22 ArgType = type(byref(c_int(0)))
100 # calling byref returns also a PyCArgObject instance
102 parm = byref(t())
H A Dtest_strings.py93 repr(byref(c_wchar("x")))
/third_party/python/PC/
H A Dvalidate_ucrtbase.py8 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__.py140 from _ctypes import sizeof, byref, addressof, alignment, resize namespace
/third_party/python/PC/layout/support/
H A Dappxmanifest.py213 pid, ctypes.byref(result_len), result
/third_party/python/Modules/_ctypes/
H A Dcallproc.c1705 "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__.py242 ctypes.byref(uof),
244 ctypes.byref(needed))
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dninja.py2112 ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dninja.py2109 ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
/third_party/python/Lib/test/
H A Dtest_os.py2908 ok = kernel.GetProcessHandleCount(hproc, ctypes.byref(handle_count))
2933 ok = kernel.GetProcessHandleCount(hproc, ctypes.byref(handle_count))

Completed in 25 milliseconds