Lines Matching refs:obj_bytes
137 bool import_from_stream_object(iface::import_filter& app, PyObject* obj_bytes) in import_from_stream_object() argument
139 const char* p = PyBytes_AsString(obj_bytes); in import_from_stream_object()
143 size_t n = PyBytes_Size(obj_bytes); in import_from_stream_object()
230 PyObject* obj_bytes = nullptr; in read_stream_and_formula_params_from_args() local
235 obj_bytes = PyObject_CallFunction(func_read, nullptr); in read_stream_and_formula_params_from_args()
239 if (!obj_bytes) in read_stream_and_formula_params_from_args()
242 obj_bytes = PyBytes_FromObject(file); in read_stream_and_formula_params_from_args()
245 if (!obj_bytes) in read_stream_and_formula_params_from_args()
266 ret.stream.reset(obj_bytes); in read_stream_and_formula_params_from_args()
276 py_unique_ptr obj_bytes; in read_stream_from_args() local
280 return obj_bytes; in read_stream_from_args()
285 return obj_bytes; in read_stream_from_args()
291 obj_bytes.reset(PyObject_CallFunction(func_read, nullptr)); in read_stream_from_args()
295 if (!obj_bytes) in read_stream_from_args()
298 obj_bytes.reset(PyBytes_FromObject(file)); in read_stream_from_args()
301 if (!obj_bytes) in read_stream_from_args()
304 return obj_bytes; in read_stream_from_args()
307 return obj_bytes; in read_stream_from_args()
311 PyObject* obj_bytes, iface::import_filter& app, std::unique_ptr<spreadsheet::document>&& doc) in import_from_stream_into_document() argument
313 if (!import_from_stream_object(app, obj_bytes)) in import_from_stream_into_document()