Home
last modified time | relevance | path

Searched refs:mview (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Objects/
Dmemoryobject.c58 PyMemoryViewObject *mview; in PyMemoryView_FromBuffer() local
60 mview = (PyMemoryViewObject *) in PyMemoryView_FromBuffer()
62 if (mview == NULL) in PyMemoryView_FromBuffer()
64 mview->base = NULL; in PyMemoryView_FromBuffer()
65 dup_buffer(&mview->view, info); in PyMemoryView_FromBuffer()
68 _PyObject_GC_TRACK(mview); in PyMemoryView_FromBuffer()
69 return (PyObject *)mview; in PyMemoryView_FromBuffer()
75 PyMemoryViewObject *mview; in PyMemoryView_FromObject() local
88 mview = (PyMemoryViewObject *)PyMemoryView_FromBuffer(&view); in PyMemoryView_FromObject()
89 if (mview == NULL) { in PyMemoryView_FromObject()
[all …]
/external/python/cpython3/Doc/c-api/
Dmemoryview.rst51 .. c:function:: Py_buffer *PyMemoryView_GET_BUFFER(PyObject *mview)
54 *mview* **must** be a memoryview instance; this macro doesn't check its type,
57 .. c:function:: Py_buffer *PyMemoryView_GET_BASE(PyObject *mview)
62 *mview* **must** be a memoryview instance.
/external/python/cpython3/Modules/
D_testbuffer.c398 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()
[all …]
/external/python/cpython3/Python/
Dmarshal.c664 PyObject *res, *mview; in r_string() local
669 mview = PyMemoryView_FromBuffer(&buf); in r_string()
670 if (mview == NULL) in r_string()
673 res = _PyObject_CallMethodId(p->readable, &PyId_readinto, "N", mview); in r_string()
/external/python/cpython3/Objects/
Dmemoryobject.c1914 PyObject *mview; /* cached memoryview */ member
1930 x->mview = NULL; in unpacker_new()
1942 Py_XDECREF(x->mview); in unpacker_free()
1990 x->mview = PyMemoryView_FromMemory(x->item, itemsize, PyBUF_WRITE); in struct_get_unpacker()
1991 if (x->mview == NULL) in struct_get_unpacker()
2014 v = PyObject_CallOneArg(x->unpack_from, x->mview); in struct_unpack_single()
/external/python/cpython3/Doc/data/
Drefcounts.dat1295 PyMemoryView_GET_BASE:PyObject*:mview:0:
1298 PyMemoryView_GET_BUFFER:PyObject*:mview:0: