Searched refs:clearto (Results 1 – 2 of 2) sorted by relevance
196 Pdata_clear(Pdata *self, Py_ssize_t clearto) in Pdata_clear() argument201 if (clearto < 0) return stackUnderflow(); in Pdata_clear()202 if (clearto >= self->length) return 0; in Pdata_clear()204 for (i = self->length, p = self->data + clearto; in Pdata_clear()205 --i >= clearto; in Pdata_clear()209 self->length = clearto; in Pdata_clear()
480 Pdata_clear(Pdata *self, Py_ssize_t clearto) in Pdata_clear() argument484 assert(clearto >= self->fence); in Pdata_clear()485 if (clearto >= i) in Pdata_clear()488 while (--i >= clearto) { in Pdata_clear()491 Py_SET_SIZE(self, clearto); in Pdata_clear()