Lines Matching refs:newview
544 Py_buffer newview; in memory_item() local
545 memset(&newview, 0, sizeof(newview)); in memory_item()
547 return PyMemoryView_FromBuffer(&newview); in memory_item()
593 Py_buffer newview; in memory_subscript() local
601 if (PyObject_GetBuffer(view->obj, &newview, newflags) == -1) in memory_subscript()
605 newview = *view; in memory_subscript()
607 newview.buf = newbuf; in memory_subscript()
608 newview.len = slicelength * newview.itemsize; in memory_subscript()
609 newview.format = view->format; in memory_subscript()
610 newview.shape = &(newview.smalltable[0]); in memory_subscript()
611 newview.shape[0] = slicelength; in memory_subscript()
612 newview.strides = &(newview.itemsize); in memory_subscript()
613 return PyMemoryView_FromBuffer(&newview); in memory_subscript()