Lines Matching refs:err
181 CborError err = cbor_value_calculate_string_length(it, &n); in dump_bytestring_base16() local
182 if (err) in dump_bytestring_base16()
183 return err; in dump_bytestring_base16()
191 err = cbor_value_copy_byte_string(it, buffer + n - 1, &n, it); in dump_bytestring_base16()
192 assert(err == CborNoError); in dump_bytestring_base16()
206 CborError err = cbor_value_calculate_string_length(it, &n); in generic_dump_base64() local
207 if (err) in generic_dump_base64()
208 return err; in generic_dump_base64()
221 err = cbor_value_copy_byte_string(it, in, &n, it); in generic_dump_base64()
222 assert(err == CborNoError); in generic_dump_base64()
327 CborError err = CborNoError; in find_tagged_type() local
331 err = cbor_value_advance_fixed(it); in find_tagged_type()
332 if (err) in find_tagged_type()
333 return err; in find_tagged_type()
337 return err; in find_tagged_type()
343 CborError err; in tagged_value_to_json() local
347 err = cbor_value_advance_fixed(it); in tagged_value_to_json()
348 if (err) in tagged_value_to_json()
349 return err; in tagged_value_to_json()
355 err = value_to_json(out, it, flags, type, status); in tagged_value_to_json()
356 if (err) in tagged_value_to_json()
357 return err; in tagged_value_to_json()
371 err = find_tagged_type(it, &status->lastTag, &type); in tagged_value_to_json()
372 if (err) in tagged_value_to_json()
373 return err; in tagged_value_to_json()
384 err = dump_bytestring_base64url(&str, it); in tagged_value_to_json()
386 err = dump_bytestring_base64(&str, it); in tagged_value_to_json()
388 err = dump_bytestring_base16(&str, it); in tagged_value_to_json()
390 if (err) in tagged_value_to_json()
391 return err; in tagged_value_to_json()
392 err = fprintf(out, "\"%s%s\"", pre, str) < 0 ? CborErrorIO : CborNoError; in tagged_value_to_json()
395 return err; in tagged_value_to_json()
399 err = value_to_json(out, it, flags, type, status); in tagged_value_to_json()
401 return err; in tagged_value_to_json()
418 CborError err = cbor_value_to_pretty_advance(memstream, it); in stringify_map_key() local
422 return err; in stringify_map_key()
434 CborError err = value_to_json(out, it, flags, cbor_value_get_type(it), status); in array_to_json() local
435 if (err) in array_to_json()
436 return err; in array_to_json()
444 CborError err; in map_to_json() local
454 err = cbor_value_dup_text_string(it, &key, &n, it); in map_to_json()
456 err = stringify_map_key(&key, it, flags, keyType); in map_to_json()
460 if (err) in map_to_json()
461 return err; in map_to_json()
469 err = value_to_json(out, it, flags, valueType, status); in map_to_json()
473 if (!err && keyType != CborTextStringType) { in map_to_json()
475 err = CborErrorIO; in map_to_json()
477 if (!err && status->flags) { in map_to_json()
481 err = CborErrorIO; in map_to_json()
486 if (err) in map_to_json()
487 return err; in map_to_json()
494 CborError err; in value_to_json() local
502 err = cbor_value_enter_container(it, &recursed); in value_to_json()
503 if (err) { in value_to_json()
505 return err; /* parse error */ in value_to_json()
510 err = (type == CborArrayType) ? in value_to_json()
513 if (err) { in value_to_json()
515 return err; /* parse error */ in value_to_json()
520 err = cbor_value_leave_container(it, &recursed); in value_to_json()
521 if (err) in value_to_json()
522 return err; /* parse error */ in value_to_json()
555 err = dump_bytestring_base64url(&str, it); in value_to_json()
559 err = cbor_value_dup_text_string(it, &str, &n, it); in value_to_json()
561 if (err) in value_to_json()
562 return err; in value_to_json()
563 err = (fprintf(out, "\"%s\"", str) < 0) ? CborErrorIO : CborNoError; in value_to_json()
565 return err; in value_to_json()