Lines Matching defs:length

3803                                       const char *name, size_t length) {
3805 return upb_strtable_lookup2(&o->ntof, name, length, &val) ?
7994 ** length until we know what the length is.
8002 ** many bytes each length will take. When our guesses are wrong, use
8005 ** 3. buffer directly into the output buffer, allocating a max length
8006 ** ahead-of-time for each submessage length. If we overallocated, we waste
8019 ** optimal amount of space for each length.
8064 * have any length preceding it.
8066 * A segment is only interrupted when another length needs to be inserted. So
8070 uint32_t msglen; /* The length to varint-encode before this segment. */
8098 * segment where this submessage's length is being accumulated. */
8184 * length. */
8194 /* Call to indicate the start of delimited region for which the full length is
8195 * not yet known. All data will be buffered until the length is known.
8238 /* Call to indicate the end of a delimited region. We now know the length of
8261 /* Need to keep buffering; propagate length info into enclosing
8273 /* A precomputed (pre-encoded) tag and length. */
8654 /* Run once to get the length of the string. */
9614 * call, and writes the length to *len. This with point either to the input
9803 int length = 0;
9806 length = 1;
9811 length = 2;
9818 length = 3;
9823 return multipart_text(p, utf8, length, false);
10026 /* strtol() and friends unfortunately do not support specifying the length of
10500 /* atoi() and friends unfortunately do not support specifying the length of
12436 /* StringPiece; a pointer plus a length. */
12573 static size_t fmt_double(double val, char* buf, size_t length) {
12575 CHKLENGTH(length >= strlen(inf));
12579 CHKLENGTH(length >= strlen(neginf));
12583 size_t n = _upb_snprintf(buf, length, "%.17g", val);
12584 CHKLENGTH(n > 0 && n < length);
12589 static size_t fmt_float(float val, char* buf, size_t length) {
12590 size_t n = _upb_snprintf(buf, length, "%.8g", val);
12591 CHKLENGTH(n > 0 && n < length);
12595 static size_t fmt_bool(bool val, char* buf, size_t length) {
12596 size_t n = _upb_snprintf(buf, length, "%s", (val ? "true" : "false"));
12597 CHKLENGTH(n > 0 && n < length);
12601 static size_t fmt_int64_as_number(int64_t val, char* buf, size_t length) {
12602 size_t n = _upb_snprintf(buf, length, "%" PRId64, val);
12603 CHKLENGTH(n > 0 && n < length);
12607 static size_t fmt_uint64_as_number(uint64_t val, char* buf, size_t length) {
12608 size_t n = _upb_snprintf(buf, length, "%" PRIu64, val);
12609 CHKLENGTH(n > 0 && n < length);
12613 static size_t fmt_int64_as_string(int64_t val, char* buf, size_t length) {
12614 size_t n = _upb_snprintf(buf, length, "\"%" PRId64 "\"", val);
12615 CHKLENGTH(n > 0 && n < length);
12619 static size_t fmt_uint64_as_string(uint64_t val, char* buf, size_t length) {
12620 size_t n = _upb_snprintf(buf, length, "\"%" PRIu64 "\"", val);
12621 CHKLENGTH(n > 0 && n < length);
12644 size_t length = fmt_func(val, data, sizeof(data)); \
12646 CHKFMT(length); \
12647 print_data(p, data, length); \
12669 size_t length = fmt_func(val, data, sizeof(data)); \
12672 print_data(p, data, length); \