Home
last modified time | relevance | path

Searched refs:sizeof (Results 1 - 25 of 82) sorted by relevance

1234

/third_party/python/Lib/lib2to3/tests/data/
H A Dinfinite_recursion.py40 assert sizeof(__mbstate_t) == 128, sizeof(__mbstate_t)
76 assert sizeof(sigcontext) == 72, sizeof(sigcontext)
100 assert sizeof(aes_key_st) == 244, sizeof(aes_key_st)
118 assert sizeof(asn1_ctx_st) == 44, sizeof(asn1_ctx_st)
131 assert sizeof(asn1_object_st) == 24, sizeof(asn1_object_s
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_sizes.py10 self.assertEqual(1, sizeof(c_int8))
11 self.assertEqual(1, sizeof(c_uint8))
14 self.assertEqual(2, sizeof(c_int16))
15 self.assertEqual(2, sizeof(c_uint16))
18 self.assertEqual(4, sizeof(c_int32))
19 self.assertEqual(4, sizeof(c_uint32))
22 self.assertEqual(8, sizeof(c_int64))
23 self.assertEqual(8, sizeof(c_uint64))
26 self.assertEqual(sizeof(c_void_p), sizeof(c_size_
[all...]
H A Dtest_bitfields.py68 self.assertEqual(sizeof(X), sizeof(c_longlong))
79 self.assertEqual(sizeof(X), sizeof(c_longlong))
92 self.assertEqual(sizeof(X), sizeof(c_typ)*2)
108 self.assertEqual(sizeof(X), sizeof(c_typ))
159 self.assertEqual(sizeof(X), sizeof(c_ty
[all...]
H A Dtest_varsize_struct.py10 self.assertEqual(sizeof(X), sizeof(c_int) * 2)
14 self.assertEqual(sizeof(x), sizeof(c_int) * 2)
17 new_size = sizeof(X) + sizeof(c_int) * 1
19 self.assertEqual(sizeof(x), new_size)
23 new_size = sizeof(X) + sizeof(c_int) * 9
25 self.assertEqual(sizeof(
[all...]
H A Dtest_buffers.py10 self.assertEqual(sizeof(b), 32 * sizeof(c_char))
15 self.assertEqual(sizeof(b), 4 * sizeof(c_char))
34 self.assertEqual(sizeof(b), 32 * sizeof(c_wchar))
39 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar))
54 self.assertEqual(sizeof(b), 4 * sizeof(c_wcha
[all...]
H A Dtest_pep3118.py31 self.assertEqual(len(v) * sizeof(itemtp), sizeof(ob))
32 self.assertEqual(v.itemsize, sizeof(itemtp))
61 self.assertEqual(len(v) * sizeof(itemtp), sizeof(ob))
62 self.assertEqual(v.itemsize, sizeof(itemtp))
117 s_bool = {1: '?', 2: 'H', 4: 'L', 8: 'Q'}[sizeof(c_bool)]
118 s_short = {2: 'h', 4: 'l', 8: 'q'}[sizeof(c_short)]
119 s_ushort = {2: 'H', 4: 'L', 8: 'Q'}[sizeof(c_ushort)]
120 s_int = {2: 'h', 4: 'i', 8: 'q'}[sizeof(c_in
[all...]
H A Dtest_structures.py26 self.assertEqual(sizeof(X), sizeof(c_int))
27 self.assertEqual(sizeof(Y), sizeof(c_int)*2)
28 self.assertEqual(sizeof(Z), sizeof(c_int))
36 self.assertEqual(sizeof(X), 0)
41 self.assertEqual(sizeof(Y), sizeof(X))
47 self.assertEqual(sizeof(
[all...]
H A Dtest_anon.py18 self.assertEqual(Y.a.offset, sizeof(c_int))
19 self.assertEqual(Y.b.offset, sizeof(c_int))
67 self.assertEqual(Y.a.offset, sizeof(c_int))
68 self.assertEqual(Y.b.offset, sizeof(c_int))
69 self.assertEqual(Y._.offset, sizeof(c_int))
70 self.assertEqual(Y.y.offset, sizeof(c_int) * 2)
H A Dtest_win32.py50 self.assertEqual(sizeof(wintypes.HWND), sizeof(c_void_p))
54 self.assertEqual(sizeof(wintypes.WPARAM),
55 sizeof(c_void_p))
56 self.assertEqual(sizeof(wintypes.LPARAM),
57 sizeof(c_void_p))
H A Dtest_frombuffer.py69 x = (c_int * 15).from_buffer(a, sizeof(c_int))
75 (c_int * 16).from_buffer(a, sizeof(c_int))
77 (c_int * 1).from_buffer(a, 16 * sizeof(c_int))
113 x = (c_int * 15).from_buffer_copy(a, sizeof(c_int))
119 (c_int * 16).from_buffer_copy(a, sizeof(c_int))
121 (c_int * 1).from_buffer_copy(a, 16 * sizeof(c_int))
H A Dtest_funcptr.py23 self.assertEqual(sizeof(x), sizeof(c_voidp))
24 self.assertEqual(sizeof(X), sizeof(c_voidp))
H A Dtest_slicing.py148 if sizeof(c_wchar) == sizeof(c_short):
150 elif sizeof(c_wchar) == sizeof(c_int):
152 elif sizeof(c_wchar) == sizeof(c_long):
H A Dtest_pointers.py25 if sizeof(c_longlong) == sizeof(c_void_p):
170 if sizeof(c_void_p) == 4:
175 elif sizeof(c_void_p) == 8:
H A Dtest_cast.py15 if 2*sizeof(c_short) == sizeof(c_int):
87 array_type = c_byte * sizeof(c_int)
H A Dtest_python_api.py70 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes")
73 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3)
/third_party/zlib/contrib/delphi/
H A DZLib.pas292 FillChar(strm, sizeof(strm), 0);
302 CCheck(deflateInit_(strm, Z_BEST_COMPRESSION, zlib_version, sizeof(strm)));
331 FillChar(strm, sizeof(strm), 0);
345 DCheck(inflateInit_(strm, zlib_version, sizeof(strm)));
371 FillChar(strm, sizeof(strm), 0);
378 DCheck(inflateInit_(strm, zlib_version, sizeof(strm)));
414 FZRec.avail_out := sizeof(FBuffer);
415 CCheck(deflateInit_(FZRec, Levels[CompressionLevel], zlib_version, sizeof(FZRec)));
427 FStrm.WriteBuffer(FBuffer, sizeof(FBuffer));
429 FZRec.avail_out := sizeof(FBuffe
[all...]
/third_party/python/Lib/ctypes/
H A D__init__.py140 from _ctypes import sizeof, byref, addressof, alignment, resize namespace
145 # Check if sizeof(ctypes_type) against struct.calcsize. This
151 actual, required = sizeof(typ), calcsize(typecode)
153 raise SystemError("sizeof(%s) wrong: %d instead of %d" % \
204 if sizeof(c_longdouble) == sizeof(c_double):
282 if sizeof(c_wchar) == 2:
483 if sizeof(c_uint) == sizeof(c_void_p):
486 elif sizeof(c_ulon
[all...]
H A Dwintypes.py42 if ctypes.sizeof(ctypes.c_long) == ctypes.sizeof(ctypes.c_void_p):
45 elif ctypes.sizeof(ctypes.c_longlong) == ctypes.sizeof(ctypes.c_void_p):
/third_party/ffmpeg/libavfilter/x86/
H A Davf_showcqt.asm35 .sizeof:
87 mov coeffs_lend, [coeffsq + Coeffs.len + Coeffs.sizeof]
99 mov coeffs_val2q, [coeffsq + Coeffs.val + Coeffs.sizeof]
105 CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof
110 cmp xd, [coeffsq + Coeffs.len + Coeffs.sizeof]
115 CQT_CALC 8, 9, 10, 11, 4, 5, 6, 7, Coeffs.sizeof
117 cmp xd, [coeffsq + Coeffs.len + Coeffs.sizeof]
128 lea coeffsq, [coeffsq + 2*Coeffs.sizeof]
171 lea coeffsq, [coeffsq + Coeffs.sizeof]
/third_party/python/Lib/test/test_capi/
H A Dtest_unicode.py19 pythonapi, py_object, sizeof,
181 min_longlong = -(2 ** (8 * sizeof(c_longlong) - 1))
187 max_ulonglong = 2 ** (8 * sizeof(c_ulonglong)) - 1
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/node/deps/v8/tools/
H A Dgdb-v8-support.py116 if self.val.type.sizeof == 4:
119 elif self.val.type.sizeof == 8:
142 if v.type.sizeof == 4:
144 elif v.type.sizeof == 8:
/third_party/protobuf/php/tests/
H A DPhpImplementationTest.php318 $this->assertSame(1, sizeof($file_desc_set->getFile()));
323 $this->assertSame(0, sizeof($file_desc->getDependency()));
324 $this->assertSame(1, sizeof($file_desc->getMessageType()));
325 $this->assertSame(0, sizeof($file_desc->getEnumType()));
330 $this->assertSame(1, sizeof($desc->getField()));
331 $this->assertSame(0, sizeof($desc->getNestedType()));
332 $this->assertSame(0, sizeof($desc->getEnumType()));
333 $this->assertSame(0, sizeof($desc->getOneofDecl()));
/third_party/zlib/
H A Dconfigure491 if (sizeof(void *) <= sizeof(int)) puts("int");
492 else if (sizeof(void *) <= sizeof(long)) puts("long");
502 if (sizeof(void *) <= sizeof(int)) puts("int");
657 vsnprintf(buf, sizeof(buf), fmt, ap);
679 n = vsnprintf(buf, sizeof(buf), fmt, ap);
747 snprintf(buf, sizeof(buf), "%s", "foo");
765 return snprintf(buf, sizeof(bu
[all...]
/third_party/python/Lib/multiprocessing/
H A Dsharedctypes.py40 size = ctypes.sizeof(type_)
50 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj))
62 ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj))
/third_party/curl/src/
H A Dmkhelp.pl163 memset(&z, 0, sizeof(z_stream));
166 z.avail_in = (unsigned int)(sizeof(hugehelpgz) - headerlen);

Completed in 12 milliseconds

1234