Lines Matching refs:mview
398 PyObject *format = NULL, *mview = NULL, *zero = NULL; in pack_single() local
416 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_WRITE); in pack_single()
417 if (mview == NULL) in pack_single()
432 PyTuple_SET_ITEM(args, 0, mview); in pack_single()
466 Py_XDECREF(mview); in pack_single()
574 PyObject *x, *unpack_from, *mview; in unpack_single() local
585 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_READ); in unpack_single()
586 if (mview == NULL) { in unpack_single()
591 x = PyObject_CallFunction(unpack_from, "sO", fmt, mview); in unpack_single()
593 Py_DECREF(mview); in unpack_single()
610 unpack_rec(PyObject *unpack_from, char *ptr, PyObject *mview, char *item, in unpack_rec() argument
623 x = PyObject_CallFunctionObjArgs(unpack_from, mview, NULL); in unpack_rec()
642 x = unpack_rec(unpack_from, nextptr, mview, item, in unpack_rec()
661 PyObject *lst = NULL, *mview = NULL; in ndarray_as_list() local
714 mview = PyMemoryView_FromMemory(item, base->itemsize, PyBUF_WRITE); in ndarray_as_list()
715 if (mview == NULL) in ndarray_as_list()
718 lst = unpack_rec(unpack_from, base->buf, mview, item, in ndarray_as_list()
723 Py_XDECREF(mview); in ndarray_as_list()
825 PyObject *mview; in init_simple() local
829 mview = PyMemoryView_FromBuffer(base); in init_simple()
830 if (mview == NULL) in init_simple()
833 ret = pack_from_list(mview, items, format, itemsize); in init_simple()
834 Py_DECREF(mview); in init_simple()