Home
last modified time | relevance | path

Searched refs:clearto (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
DcPickle.c196 Pdata_clear(Pdata *self, Py_ssize_t clearto) in Pdata_clear() argument
201 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()
/external/python/cpython3/Modules/
D_pickle.c480 Pdata_clear(Pdata *self, Py_ssize_t clearto) in Pdata_clear() argument
484 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()