Searched refs:mview (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Doc/c-api/ |
D | memoryview.rst | 52 .. c:function:: Py_buffer *PyMemoryView_GET_BUFFER(PyObject *mview) 55 *mview* **must** be a memoryview instance; this macro doesn't check its type, 58 .. c:function:: Py_buffer *PyMemoryView_GET_BASE(PyObject *mview) 63 *mview* **must** be a memoryview instance.
|
/third_party/python/Modules/ |
D | _testbuffer.c | 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() [all …]
|
/third_party/python/Python/ |
D | marshal.c | 668 PyObject *res, *mview; in r_string() local 673 mview = PyMemoryView_FromBuffer(&buf); in r_string() 674 if (mview == NULL) in r_string() 677 res = _PyObject_CallMethodId(p->readable, &PyId_readinto, "N", mview); in r_string()
|
/third_party/python/Objects/ |
D | memoryobject.c | 1923 PyObject *mview; /* cached memoryview */ member 1939 x->mview = NULL; in unpacker_new() 1951 Py_XDECREF(x->mview); in unpacker_free() 1999 x->mview = PyMemoryView_FromMemory(x->item, itemsize, PyBUF_WRITE); in struct_get_unpacker() 2000 if (x->mview == NULL) in struct_get_unpacker() 2023 v = PyObject_CallOneArg(x->unpack_from, x->mview); in struct_unpack_single()
|
/third_party/python/Doc/data/ |
D | refcounts.dat | 1298 PyMemoryView_GET_BASE:PyObject*:mview:0: 1301 PyMemoryView_GET_BUFFER:PyObject*:mview:0:
|