Lines Matching refs:slicelen
785 Py_ssize_t start, stop, step, slicelen; in mmap_subscript() local
790 slicelen = _PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_subscript()
792 if (slicelen <= 0) in mmap_subscript()
796 slicelen); in mmap_subscript()
798 char *result_buf = (char *)PyMem_Malloc(slicelen); in mmap_subscript()
804 for (cur = start, i = 0; i < slicelen; in mmap_subscript()
809 slicelen); in mmap_subscript()
922 Py_ssize_t start, stop, step, slicelen; in mmap_ass_subscript() local
927 slicelen = _PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_ass_subscript()
938 if (PyString_Size(value) != slicelen) { in mmap_ass_subscript()
946 if (slicelen == 0) in mmap_ass_subscript()
953 memcpy(self->data + start, buf, slicelen); in mmap_ass_subscript()
962 for (cur = start, i = 0; i < slicelen; in mmap_ass_subscript()