Lines Matching refs:slicelen
779 Py_ssize_t start, stop, step, slicelen; in mmap_subscript() local
784 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_subscript()
786 if (slicelen <= 0) in mmap_subscript()
790 slicelen); in mmap_subscript()
792 char *result_buf = (char *)PyMem_Malloc(slicelen); in mmap_subscript()
798 for (cur = start, i = 0; i < slicelen; in mmap_subscript()
803 slicelen); in mmap_subscript()
886 Py_ssize_t start, stop, step, slicelen; in mmap_ass_subscript() local
892 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_ass_subscript()
900 if (vbuf.len != slicelen) { in mmap_ass_subscript()
907 if (slicelen == 0) { in mmap_ass_subscript()
910 memcpy(self->data + start, vbuf.buf, slicelen); in mmap_ass_subscript()
916 i < slicelen; in mmap_ass_subscript()