Lines Matching refs:checkpoint
7099 static void checkpoint(upb_pbdecoder *d) {
7101 * We are trying to ensure that we don't checkpoint() more often than
7103 UPB_ASSERT(d->checkpoint != d->ptr);
7104 d->checkpoint = d->ptr;
7181 d->checkpoint = d->ptr;
7188 checkpoint(d);
7194 checkpoint(d);
7200 /* Suspends the decoder at the last checkpoint, without saving any residual
7204 if (d->checkpoint == d->residual) {
7209 size_t ret = d->size_param - (d->end - d->checkpoint);
7210 UPB_ASSERT(!in_residual_buf(d, d->checkpoint));
7213 d->bufstart_ofs += (d->checkpoint - d->buf);
7220 /* Suspends the decoder at the last checkpoint, and saves any unconsumed
7229 if (d->checkpoint == d->residual) {
7241 UPB_ASSERT(!in_residual_buf(d, d->checkpoint));
7243 d->ptr = d->checkpoint;
7521 upb_sink_putunknown(d->top->sink, d->checkpoint, d->ptr - d->checkpoint);
7526 checkpoint(d);
7610 case op: { code; if (consumes_input(op)) checkpoint(d); break; }
7713 if (n > 0) checkpoint(d);
7772 break; /* Avoid checkpoint(). */