Lines Matching defs:value
43 #define UPB_WRITE_ONEOF(msg, fieldtype, offset, value, case_offset, case_val) \
45 *UPB_PTR_AT(msg, offset, fieldtype) = value;
462 /* Append scalar value. */
1329 bool _upb_array_append_fallback(upb_array **arr_ptr, const void *value,
1339 memcpy(data + (elem << lg2), value, 1 << lg2);
2072 * 1. We can read a 4-byte value from any address without crashing
2084 /* Initialize the hash to a 'random' value */
4315 /* XXX: need to interpret the C-escaped value. */
4319 /* Should not have a default value. */
4540 "enums must contain at least one value (%s)",
4546 const google_protobuf_EnumValueDescriptorProto *value = values[i];
4547 upb_strview name = google_protobuf_EnumValueDescriptorProto_name(value);
4549 int32_t num = google_protobuf_EnumValueDescriptorProto_number(value);
4554 "for proto3, the first enum value must be zero (%s)",
4729 /* Have to delay resolving of the default value until now because of the enum
4914 upb_value value = upb_strtable_iter_value(&iter);
4915 CHK_OOM(upb_strtable_insert3(&s->syms, key.data, key.size, value, alloc));
5252 const upb_fielddef *value = upb_msgdef_itof(entry, UPB_MAPENTRY_VALUE);
5253 ret.map = upb_map_new(a, upb_fielddef_type(key), upb_fielddef_type(value));
5390 /* Returns the key and value for this entry of the map. */
5409 /* void upb_mapiter_setvalue(upb_map *map, size_t iter, upb_msgval value); */
5436 /* Defined for the sole purpose of having a unique pointer value for
6196 * the value returned now is actually a "next" pointer into a linked list of all
6200 * The returned value is the offset that should be written into the instruction.
7073 /* Calculates the delim_end value, which is affected by both the current buffer
7117 seterr(d, "Skipped value extended beyond enclosing submessage.");
7145 /* We need to remember the original size_param, so that the value we return
7222 * bytes to form a complete value, which might not be contiguous in the
7225 /* We hit end-of-buffer before we could parse a full value.
7280 seterr(d, "Submessage ended in the middle of a value or group");
7930 /* If this fails, increase the value in decoder.h. */
8544 /* If this fails, increase the value in encoder.h. */
8730 /* Output a symbolic value from the enum if found, else just print as int32. */
8999 /* Type of value message */
9117 /* For encoding Any value field in binary format. */
9121 /* For decoding Any value field in json format. */
9137 /* The current message in which we're parsing, and the field whose value we're
9156 * value field of a single map entry and indicates to all value-field parsers
9158 * should end as soon as the value is parsed. */
9440 /* Returns the table value sign-extended to 32 bits. Knowing that the upper
9535 * Some parts of the parser need an entire value as a contiguous string. For
9538 * contiguous memory, even if the value spanned two or more buffers in the
9549 * the true value in a contiguous buffer. */
9651 /* Start a multi-part text value where we accumulate the data for processing at
9659 /* Start a multi-part text value where we immediately push text data to a string
9660 * value with the given selector. */
10053 "Boolean value specified for non-bool field: %s",
10317 /* Resolve enum symbolic name to integer value. */
10330 upb_status_seterrf(p->status, "Enum value unknown: '%.*s'", len, buf);
10445 "maximum acceptable value is "
10452 "minimum acceptable value is "
10709 "minimum acceptable value is "
10866 * value parser (invoked next) will emit the mapentry's value field and then
10877 * value field is parsed, and also set a flag to end the frame after the
10878 * map-entry value is parsed. */
10892 * the key field value to the sink, and these handlers will pop the frame
10894 * would have just seen the map-entry value, not key). */
10903 /* Set up the value field to receive the map-entry value. */
10905 p->top->is_mapentry = true; /* set up to pop frame after value is parsed. */
10908 upb_status_seterrmsg(p->status, "mapentry message has no value");
10967 /* If we just parsed a map-entry value, end that frame too. */
11223 const char *value_membername = "value";
11235 /* Well known types data is represented as value field. */
11308 /* Set value */
11351 /* Set up context for parsing value */
11367 const char *membername = "value";
11371 /* Set up context for parsing value */
11415 /* Set up context for parsing value */
11432 /* Set up context for parsing value */
11449 /* Set up context for parsing value */
12326 /* If this fails, uncomment and increase the value in parser.h. */
13019 /* Set up handlers for a mapentry submessage (i.e., an individual key/value pair
13022 * TODO: Handle missing key, missing value, out-of-order key/value, or repeated
13023 * key or value cases properly. The right way to do this is to allocate a
13025 * value data in it as key and value handlers are called, and then print the
13026 * key/value pair once at the end of the submessage. If we don't do this, we
13029 * field, and then one value field), so this is not a pressing concern at the
13035 /* A mapentry message is printed simply as '"key": value'. Rather than
13036 * special-case key and value for every type below, we just handle both
13254 "minimum acceptable value is "
13261 "maximum acceptable value is "
13324 "minimum acceptable value is "
13331 "maximum acceptable value is "
13438 strpc *value_json_name = newstrpc_str(h, "value");
13451 /* This is not the full and correct JSON encoding for the Any value field. It
13776 /* If this fails, increase the value in printer.h. */