Lines Matching refs:need
1247 size_t need = in->unknown_size + len;
1248 size_t newsize = UPB_MAX(in->unknown_size * 2, need);
1439 /* For when we need to cast away const. */
1707 /* Arena-based allocs don't need to free and won't pass this. */
2385 return NULL; /* We are an arena, don't need individual frees. */
2415 /* We need to malloc the initial block. */
3742 /* We need to skip past any initial fields. */
3750 /* We need to skip past fields to return only oneofs. */
4057 * this code is used to directly build defs from Ruby (for example) we do need
4315 /* XXX: need to interpret the C-escaped value. */
6749 /* If there were no fields, or if no handlers were defined, we need to
6972 * We need this because in C (NULL + 0) and (NULL - NULL) are undefined
7145 /* We need to remember the original size_param, so that the value we return
7159 /* We can't just return now, because we might need to execute some ops
7163 /* We need to pretend that this was the actual buffer param, since some of the
7221 * bytes in our residual buffer. This is necessary if we need more user
7575 * we need to back up to, so that when we're done skipping unknown data we
8043 * that is "ready to go" -- it does not need any varint lengths inserted into
8086 * initially points to "initbuf", but is dynamically allocated if we need to
9145 /* We are in a repeated-field context. We need this flag to decide whether to
9535 * Some parts of the parser need an entire value as a contiguous string. For
9537 * a number, the relevant library routines need the input string to be in
9548 * 2. The string included escape sequences that need to be interpreted to get
9562 static bool accumulate_realloc(upb_json_parser *p, size_t need) {
9566 while (new_size < need) {
9586 size_t need;
9594 if (!checked_add(p->accumulated_len, len, &need)) {
9599 if (need > p->accumulate_buf_size && !accumulate_realloc(p, need)) {
9634 * 2. we need to accumulate all the parts into a contiguous buffer for further
9802 char utf8[3]; /* support \u0000 -- \uFFFF -- need only three bytes. */
10027 * the input string, so we need to force a copy into a NULL-terminated buffer. */
10228 /* No need to push a frame -- numeric values in quotes remain in the
10358 /* FieldMask's stringvals have been ended when handling them. Only need to
10429 * represented by double without losing precision. Thus, we need to handle
10501 * the input string, so we need to force a copy into a NULL-terminated buffer. */
10807 * particular, integer and bool keys are quoted, so we need to parse the
10875 /* Map entry: p->top->sink is the seq frame, so we need to start a frame
12482 /* TODO: Will need to change if we support pushback from the sink. */
13709 * need first. */
13734 * encoder will need to be made resumable for this to work properly. */