Home
last modified time | relevance | path

Searched refs:ctypes (Results 1 - 25 of 135) sorted by relevance

123456

/third_party/python/Lib/ctypes/
H A Dwintypes.py2 import ctypes namespace
4 BYTE = ctypes.c_byte
5 WORD = ctypes.c_ushort
6 DWORD = ctypes.c_ulong
8 #UCHAR = ctypes.c_uchar
9 CHAR = ctypes.c_char
10 WCHAR = ctypes.c_wchar
11 UINT = ctypes.c_uint
12 INT = ctypes.c_int
14 DOUBLE = ctypes
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_refcounts.py3 import ctypes namespace
6 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
7 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
10 dll = ctypes.CDLL(_ctypes_test.__file__)
19 f.restype = ctypes
[all...]
H A Dtest_unicode.py2 import ctypes namespace
3 from ctypes.test import need_symbol
10 dll = ctypes.CDLL(_ctypes_test.__file__)
12 wcslen.argtypes = [ctypes.c_wchar_p]
16 self.assertRaises(ctypes.ArgumentError, wcslen, b"ab\xe4")
19 buf = ctypes.create_unicode_buffer("abc")
22 buf = ctypes.create_unicode_buffer("ab\xe4\xf6\xfc")
30 class TestStruct(ctypes.Structure):
31 _fields_ = [("unicode", ctypes.c_wchar_p)]
37 func = ctypes
[all...]
/third_party/python/Lib/multiprocessing/
H A Dsharedctypes.py2 # Module which supports allocation of ctypes objects from shared memory
10 import ctypes namespace
26 'c': ctypes.c_char, 'u': ctypes.c_wchar,
27 'b': ctypes.c_byte, 'B': ctypes.c_ubyte,
28 'h': ctypes.c_short, 'H': ctypes.c_ushort,
29 'i': ctypes.c_int, 'I': ctypes
[all...]
/third_party/node/deps/v8/tools/testrunner/local/
H A Dutils.py113 import ctypes, ctypes.util namespace
117 _LIBC = ctypes.CDLL(ctypes.util.find_library('c'))
118 _LIBC.getauxval.argtypes = [ctypes.c_ulong]
119 _LIBC.getauxval.restype = ctypes.c_char_p
136 _LIBC = ctypes.CDLL(ctypes.util.find_library('c'),
137 ctypes.DEFAULT_MODE | RTLD_MEMBER)
138 class _system_configuration(ctypes
[all...]
/third_party/node/deps/v8/tools/
H A Dgrokdump.py38 import ctypes namespace
89 self.size = ctypes.sizeof(self.ctype)
112 class Raw(ctypes.Structure):
148 byte = ctypes.c_uint8.from_buffer(reader.minidump, slot + i).value
199 ("signature", ctypes.c_uint32),
200 ("version", ctypes.c_uint32),
201 ("stream_count", ctypes.c_uint32),
202 ("stream_directories_rva", ctypes.c_uint32),
203 ("checksum", ctypes.c_uint32),
204 ("time_date_stampt", ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/riscv32/
H A Dgeneral.rs2368 pub type size_t = crate::ctypes::c_uint;
2369 pub type ssize_t = crate::ctypes::c_int;
2370 pub type __s8 = crate::ctypes::c_schar;
2371 pub type __u8 = crate::ctypes::c_uchar;
2372 pub type __s16 = crate::ctypes::c_short;
2373 pub type __u16 = crate::ctypes::c_ushort;
2374 pub type __s32 = crate::ctypes::c_int;
2375 pub type __u32 = crate::ctypes::c_uint;
2376 pub type __s64 = crate::ctypes::c_longlong;
2377 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dgeneral.rs2389 pub type size_t = crate::ctypes::c_ulong;
2390 pub type ssize_t = crate::ctypes::c_long;
2391 pub type __s8 = crate::ctypes::c_schar;
2392 pub type __u8 = crate::ctypes::c_uchar;
2393 pub type __s16 = crate::ctypes::c_short;
2394 pub type __u16 = crate::ctypes::c_ushort;
2395 pub type __s32 = crate::ctypes::c_int;
2396 pub type __u32 = crate::ctypes::c_uint;
2397 pub type __s64 = crate::ctypes::c_longlong;
2398 pub type __u64 = crate::ctypes
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Ddebug.py304 import ctypes namespace
309 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
310 _Py_ssize_t = ctypes.c_int64
312 _Py_ssize_t = ctypes.c_int
315 _Py_ssize_t = ctypes.c_ssize_t
318 class _PyObject(ctypes.Structure):
322 ('ob_type', ctypes.POINTER(_PyObject))
327 class _PyObject(ctypes.Structure):
330 ('_ob_next', ctypes.POINTER(_PyObject)),
331 ('_ob_prev', ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/
H A Dlib.rs5 pub use std::os::raw as ctypes;
8 pub mod ctypes { modules
47 use super::ctypes;
48 static_assertions::assert_eq_size!(ctypes::c_char, libc::c_char);
49 static_assertions::assert_type_eq_all!(ctypes::c_schar, libc::c_schar);
50 static_assertions::assert_type_eq_all!(ctypes::c_uchar, libc::c_uchar);
51 static_assertions::assert_type_eq_all!(ctypes::c_short, libc::c_short);
52 static_assertions::assert_type_eq_all!(ctypes::c_ushort, libc::c_ushort);
53 static_assertions::assert_type_eq_all!(ctypes::c_int, libc::c_int);
54 static_assertions::assert_type_eq_all!(ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/riscv64/
H A Dgeneral.rs2388 pub type size_t = crate::ctypes::c_ulong;
2389 pub type ssize_t = crate::ctypes::c_long;
2390 pub type __s8 = crate::ctypes::c_schar;
2391 pub type __u8 = crate::ctypes::c_uchar;
2392 pub type __s16 = crate::ctypes::c_short;
2393 pub type __u16 = crate::ctypes::c_ushort;
2394 pub type __s32 = crate::ctypes::c_int;
2395 pub type __u32 = crate::ctypes::c_uint;
2396 pub type __s64 = crate::ctypes::c_longlong;
2397 pub type __u64 = crate::ctypes
[all...]
/third_party/python/Tools/unicode/
H A Dgenwincodec.py6 import ctypes namespace
7 from ctypes import wintypes
12 MultiByteToWideChar = ctypes.windll.kernel32.MultiByteToWideChar
14 wintypes.LPCSTR, ctypes.c_int,
15 wintypes.LPWSTR, ctypes.c_int]
16 MultiByteToWideChar.restype = ctypes.c_int
24 buf = ctypes.create_unicode_buffer(2)
/third_party/python/Lib/test/
H A Dtest_code.py138 import ctypes namespace
140 ctypes = None variable
708 if check_impl_detail(cpython=True) and ctypes is not None:
709 py = ctypes.pythonapi
710 freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp)
714 RequestCodeExtraIndex.restype = ctypes.c_ssize_t
717 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/powerpc/
H A Dgeneral.rs2520 pub type size_t = crate::ctypes::c_uint;
2521 pub type ssize_t = crate::ctypes::c_int;
2522 pub type __s8 = crate::ctypes::c_schar;
2523 pub type __u8 = crate::ctypes::c_uchar;
2524 pub type __s16 = crate::ctypes::c_short;
2525 pub type __u16 = crate::ctypes::c_ushort;
2526 pub type __s32 = crate::ctypes::c_int;
2527 pub type __u32 = crate::ctypes::c_uint;
2528 pub type __s64 = crate::ctypes::c_longlong;
2529 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/mips/
H A Dgeneral.rs2635 pub type size_t = crate::ctypes::c_uint;
2636 pub type ssize_t = crate::ctypes::c_int;
2637 pub type __s8 = crate::ctypes::c_schar;
2638 pub type __u8 = crate::ctypes::c_uchar;
2639 pub type __s16 = crate::ctypes::c_short;
2640 pub type __u16 = crate::ctypes::c_ushort;
2641 pub type __s32 = crate::ctypes::c_int;
2642 pub type __u32 = crate::ctypes::c_uint;
2643 pub type __s64 = crate::ctypes::c_longlong;
2644 pub type __u64 = crate::ctypes
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Ddebug.py219 # PyPy might have special support, and won't work with ctypes.
241 # Use ctypes to assign tb_next at the C level since it's read-only
243 import ctypes namespace
245 class _CTraceback(ctypes.Structure):
248 ("PyObject_HEAD", ctypes.c_byte * object().__sizeof__()),
250 ("tb_next", ctypes.py_object),
258 c_tb_next = ctypes.py_object(tb.tb_next)
259 c_tb.tb_next = ctypes.py_object()
260 ctypes.pythonapi.Py_DecRef(c_tb_next)
264 c_tb_next = ctypes
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Ddebug.py219 # PyPy might have special support, and won't work with ctypes.
241 # Use ctypes to assign tb_next at the C level since it's read-only
243 import ctypes namespace
245 class _CTraceback(ctypes.Structure):
248 ("PyObject_HEAD", ctypes.c_byte * object().__sizeof__()),
250 ("tb_next", ctypes.py_object),
258 c_tb_next = ctypes.py_object(tb.tb_next)
259 c_tb.tb_next = ctypes.py_object()
260 ctypes.pythonapi.Py_DecRef(c_tb_next)
264 c_tb_next = ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/mips64/
H A Dgeneral.rs2573 pub type size_t = crate::ctypes::c_ulong;
2574 pub type ssize_t = crate::ctypes::c_long;
2575 pub type __s8 = crate::ctypes::c_schar;
2576 pub type __u8 = crate::ctypes::c_uchar;
2577 pub type __s16 = crate::ctypes::c_short;
2578 pub type __u16 = crate::ctypes::c_ushort;
2579 pub type __s32 = crate::ctypes::c_int;
2580 pub type __u32 = crate::ctypes::c_uint;
2581 pub type __s64 = crate::ctypes::c_long;
2582 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
H A Dgeneral.rs2498 pub type size_t = crate::ctypes::c_ulong;
2499 pub type ssize_t = crate::ctypes::c_long;
2500 pub type __s8 = crate::ctypes::c_schar;
2501 pub type __u8 = crate::ctypes::c_uchar;
2502 pub type __s16 = crate::ctypes::c_short;
2503 pub type __u16 = crate::ctypes::c_ushort;
2504 pub type __s32 = crate::ctypes::c_int;
2505 pub type __u32 = crate::ctypes::c_uint;
2506 pub type __s64 = crate::ctypes::c_long;
2507 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/arm/
H A Dgeneral.rs2472 pub type size_t = crate::ctypes::c_uint;
2473 pub type ssize_t = crate::ctypes::c_int;
2474 pub type __s8 = crate::ctypes::c_schar;
2475 pub type __u8 = crate::ctypes::c_uchar;
2476 pub type __s16 = crate::ctypes::c_short;
2477 pub type __u16 = crate::ctypes::c_ushort;
2478 pub type __s32 = crate::ctypes::c_int;
2479 pub type __u32 = crate::ctypes::c_uint;
2480 pub type __s64 = crate::ctypes::c_longlong;
2481 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/x86/
H A Dgeneral.rs2502 pub type size_t = crate::ctypes::c_uint;
2503 pub type ssize_t = crate::ctypes::c_int;
2504 pub type __s8 = crate::ctypes::c_schar;
2505 pub type __u8 = crate::ctypes::c_uchar;
2506 pub type __s16 = crate::ctypes::c_short;
2507 pub type __u16 = crate::ctypes::c_ushort;
2508 pub type __s32 = crate::ctypes::c_int;
2509 pub type __u32 = crate::ctypes::c_uint;
2510 pub type __s64 = crate::ctypes::c_longlong;
2511 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/s390x/
H A Dgeneral.rs2433 pub type size_t = crate::ctypes::c_ulong;
2434 pub type ssize_t = crate::ctypes::c_long;
2435 pub type __s8 = crate::ctypes::c_schar;
2436 pub type __u8 = crate::ctypes::c_uchar;
2437 pub type __s16 = crate::ctypes::c_short;
2438 pub type __u16 = crate::ctypes::c_ushort;
2439 pub type __s32 = crate::ctypes::c_int;
2440 pub type __u32 = crate::ctypes::c_uint;
2441 pub type __s64 = crate::ctypes::c_longlong;
2442 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/sparc/
H A Dgeneral.rs2735 pub type size_t = crate::ctypes::c_uint;
2736 pub type ssize_t = crate::ctypes::c_int;
2737 pub type __s8 = crate::ctypes::c_schar;
2738 pub type __u8 = crate::ctypes::c_uchar;
2739 pub type __s16 = crate::ctypes::c_short;
2740 pub type __u16 = crate::ctypes::c_ushort;
2741 pub type __s32 = crate::ctypes::c_int;
2742 pub type __u32 = crate::ctypes::c_uint;
2743 pub type __s64 = crate::ctypes::c_longlong;
2744 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/sparc64/
H A Dgeneral.rs2705 pub type size_t = crate::ctypes::c_ulong;
2706 pub type ssize_t = crate::ctypes::c_long;
2707 pub type __s8 = crate::ctypes::c_schar;
2708 pub type __u8 = crate::ctypes::c_uchar;
2709 pub type __s16 = crate::ctypes::c_short;
2710 pub type __u16 = crate::ctypes::c_ushort;
2711 pub type __s32 = crate::ctypes::c_int;
2712 pub type __u32 = crate::ctypes::c_uint;
2713 pub type __s64 = crate::ctypes::c_longlong;
2714 pub type __u64 = crate::ctypes
[all...]
/third_party/rust/crates/linux-raw-sys/src/x32/
H A Dgeneral.rs2419 pub type size_t = crate::ctypes::c_uint;
2420 pub type ssize_t = crate::ctypes::c_int;
2421 pub type __s8 = crate::ctypes::c_schar;
2422 pub type __u8 = crate::ctypes::c_uchar;
2423 pub type __s16 = crate::ctypes::c_short;
2424 pub type __u16 = crate::ctypes::c_ushort;
2425 pub type __s32 = crate::ctypes::c_int;
2426 pub type __u32 = crate::ctypes::c_uint;
2427 pub type __s64 = crate::ctypes::c_longlong;
2428 pub type __u64 = crate::ctypes
[all...]

Completed in 152 milliseconds

123456