Lines Matching defs:buf

149     base->buf = ndbuf->data;
561 dest->buf, dest->strides, dest->suboffsets,
562 src->buf, src->strides, src->suboffsets,
718 lst = unpack_rec(unpack_from, base->buf, mview, item,
762 | base.buf | PTR | PTR | OK |
984 buf = &data[0]
996 buf = &data[0]
1024 buf = &newdata[1] # striding backwards over the pointers.
1059 base->buf = ndbuf->data;
1080 ((char **)base->buf)[n] = (char *)base->buf + start + n*step;
1100 base->buf = (char *)base->buf + (base->shape[0]-1) * sizeof(char *);
1154 /* buf */
1155 base->buf = ndbuf->data + ndbuf->offset;
1169 /* modifies base->buf, base->strides and base->suboffsets **/
1498 /* PyBUF_SIMPLE or PyBUF_WRITABLE: at this point buf is C-contiguous,
1499 so base->buf = ndbuf->data. */
1575 ptr = (char *)base->buf;
1621 subview->buf = ptr;
1644 ptr = (char *)buf + indices[0] * strides[0] +
1648 Adjust buf:
1654 Therefore init_slice() adds all start[n] directly to buf.
1679 Adjust buf:
1681 In the original array, buf points to a location (usually the start)
1683 added to buf in the same manner as for NumPy arrays.
1688 possible to adjust buf for higher dimensions. Recall that the
1724 base->buf = (char *)base->buf + base->strides[dim] * start;
1788 return unpack_single(base->buf, base->format, base->itemsize);
1885 ptr = (char *)dest->buf;
2165 return PyBytes_FromStringAndSize(src->buf, src->len);
2178 dest.buf = mem;
2269 info.buf = infobuf + ((char *)view->buf - ndbuf->data);
2436 char *buf = NULL;
2451 buf = PyMem_Malloc(view.len);
2452 if (buf == NULL) {
2457 if (PyBuffer_ToContiguous(buf, &view, view.len, ord) < 0) {
2461 ret = PyBytes_FromStringAndSize(buf, view.len);
2465 PyMem_XFree(buf);
2551 if (memcmp((char *)v1.buf, (char *)v2.buf, v1.len) != 0) {
2699 static_mem, /* buf */