#include "components/cbor/diagnostic_writer.h"
#include <string>
#include "base/json/string_escape.h"
#include "base/notreached.h"
#include "base/numerics/clamped_math.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "components/cbor/constants.h"
#include "components/cbor/values.h"
ClampAdd;
ClampMul;
namespace cbor {
static bool AppendHex(const std::vector<uint8_t> bytes,
char type_char,
size_t rough_max_output_bytes,
std::string* s) { … }
static bool Serialize(const Value& node,
size_t rough_max_output_bytes,
std::string* s) { … }
std::string DiagnosticWriter::Write(const Value& node,
size_t rough_max_output_bytes) { … }
}