Lines Matching refs:s_object
2088 PyObject * s_object; in cache_struct_converter() local
2102 s_object = PyDict_GetItemWithError(cache, fmt); in cache_struct_converter()
2103 if (s_object != NULL) { in cache_struct_converter()
2104 Py_INCREF(s_object); in cache_struct_converter()
2105 *ptr = (PyStructObject *)s_object; in cache_struct_converter()
2112 s_object = PyObject_CallOneArg(_structmodulestate_global->PyStructType, fmt); in cache_struct_converter()
2113 if (s_object != NULL) { in cache_struct_converter()
2117 if (PyDict_SetItem(cache, fmt, s_object) == -1) in cache_struct_converter()
2119 *ptr = (PyStructObject *)s_object; in cache_struct_converter()
2150 calcsize_impl(PyObject *module, PyStructObject *s_object) in calcsize_impl() argument
2153 return s_object->s_size; in calcsize_impl()
2165 PyObject *s_object = NULL; in pack() local
2174 if (!cache_struct_converter(format, (PyStructObject **)&s_object)) { in pack()
2177 result = s_pack(s_object, args + 1, nargs - 1); in pack()
2178 Py_DECREF(s_object); in pack()
2193 PyObject *s_object = NULL; in pack_into() local
2202 if (!cache_struct_converter(format, (PyStructObject **)&s_object)) { in pack_into()
2205 result = s_pack_into(s_object, args + 1, nargs - 1); in pack_into()
2206 Py_DECREF(s_object); in pack_into()
2225 unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer) in unpack_impl() argument
2228 return Struct_unpack_impl(s_object, buffer); in unpack_impl()
2247 unpack_from_impl(PyObject *module, PyStructObject *s_object, in unpack_from_impl() argument
2251 return Struct_unpack_from_impl(s_object, buffer, offset); in unpack_from_impl()
2270 iter_unpack_impl(PyObject *module, PyStructObject *s_object, in iter_unpack_impl() argument
2274 return Struct_iter_unpack(s_object, buffer); in iter_unpack_impl()