Lines Matching refs:slicelen
883 Py_ssize_t start, stop, step, slicelen; in mmap_subscript() local
888 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_subscript()
890 if (slicelen <= 0) in mmap_subscript()
894 slicelen); in mmap_subscript()
896 char *result_buf = (char *)PyMem_Malloc(slicelen); in mmap_subscript()
903 for (cur = start, i = 0; i < slicelen; in mmap_subscript()
908 slicelen); in mmap_subscript()
991 Py_ssize_t start, stop, step, slicelen; in mmap_ass_subscript() local
997 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_ass_subscript()
1005 if (vbuf.len != slicelen) { in mmap_ass_subscript()
1012 if (slicelen == 0) { in mmap_ass_subscript()
1015 memcpy(self->data + start, vbuf.buf, slicelen); in mmap_ass_subscript()
1022 i < slicelen; in mmap_ass_subscript()