Searched refs:formatcode (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_struct.py | 793 for formatcode, bits in format_bits__nan_list: 827 for formatcode, bits, f in format_bits_float__rounding_list: 828 self.assertEqual(bits, struct.pack(formatcode, f)) 847 for formatcode, f in format_bits_float__roundingError_list: 848 self.assertRaises(OverflowError, struct.pack, formatcode, f) 855 for formatcode, bits, f in format_bits_float__doubleRoundingError_list: 856 self.assertEqual(bits, struct.pack(formatcode, f))
|
/external/python/cpython3/Modules/ |
D | _struct.c | 51 } formatcode; typedef 59 formatcode *s_codes; 1290 formatcode *codes; in prepare_s() 1357 if ((ncodes + 1) > ((size_t)PY_SSIZE_T_MAX / sizeof(formatcode))) { in prepare_s() 1364 codes = PyMem_MALLOC((ncodes + 1) * sizeof(formatcode)); in prepare_s() 1503 formatcode *code; in s_unpack_internal() 1778 formatcode *code; in s_pack_internal() 2018 formatcode *code; in s_sizeof() 2020 size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode); in s_sizeof() 2022 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()
|