Lines Matching refs:data
92 Py_ssize_t len; /* length of data */
93 Py_ssize_t offset; /* start of the array relative to data */
94 char *data; /* raw data */
137 ndbuf->data = PyMem_Malloc(len);
138 if (ndbuf->data == NULL) {
149 base->buf = ndbuf->data;
168 PyMem_XFree(ndbuf->data);
256 nd->head->data = NULL;
754 | data | PTR | OK | OK |
764 | base.len | len(data) | len(data) | OK |
983 data = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
984 buf = &data[0]
991 data = {p1, p2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
996 buf = &data[0]
1012 data = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
1037 char *data;
1042 /* Allocate new data with additional space for shape[0] pointers. */
1048 data = PyMem_Malloc(ndbuf->len + addsize);
1049 if (data == NULL) {
1054 memcpy(data + addsize, ndbuf->data, ndbuf->len);
1056 PyMem_Free(ndbuf->data);
1057 ndbuf->data = data;
1059 base->buf = ndbuf->data;
1155 base->buf = ndbuf->data + ndbuf->offset;
1461 /* NULL indicates that the buffer's data type has been cast to 'B'.
1499 so base->buf = ndbuf->data. */
1879 PyErr_SetString(PyExc_TypeError, "ndarray data cannot be deleted");
2267 /* copy the complete raw data */
2268 memcpy(infobuf, ndbuf->data, ndbuf->len);
2269 info.buf = infobuf + ((char *)view->buf - ndbuf->data);