Searched refs:formatcode (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_struct.py | 737 for formatcode, bits in format_bits__nan_list: 771 for formatcode, bits, f in format_bits_float__rounding_list: 772 self.assertEqual(bits, struct.pack(formatcode, f)) 791 for formatcode, f in format_bits_float__roundingError_list: 792 self.assertRaises(OverflowError, struct.pack, formatcode, f) 799 for formatcode, bits, f in format_bits_float__doubleRoundingError_list: 800 self.assertEqual(bits, struct.pack(formatcode, f))
|
/external/python/cpython3/Modules/ |
D | _struct.c | 35 } formatcode; typedef 43 formatcode *s_codes; 1279 formatcode *codes; in prepare_s() 1341 if ((ncodes + 1) > ((size_t)PY_SSIZE_T_MAX / sizeof(formatcode))) { in prepare_s() 1348 codes = PyMem_MALLOC((ncodes + 1) * sizeof(formatcode)); in prepare_s() 1482 formatcode *code; in s_unpack_internal() 1738 formatcode *code; in s_pack_internal() 1974 formatcode *code; in s_sizeof() 1976 size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode); in s_sizeof() 1978 size += sizeof(formatcode); in s_sizeof()
|
/external/python/cpython2/Modules/ |
D | _struct.c | 41 } formatcode; typedef 49 formatcode *s_codes; 1227 formatcode *codes; in prepare_s() 1284 if ((len + 1) > (PY_SSIZE_T_MAX / sizeof(formatcode))) { in prepare_s() 1291 codes = PyMem_MALLOC((len + 1) * sizeof(formatcode)); in prepare_s() 1417 formatcode *code; in s_unpack_internal() 1558 formatcode *code; in s_pack_internal() 1742 size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode) * (self->s_len + 1); in s_sizeof()
|