#include "components/cbor/writer.h"
#include <cstdint>
#include <ostream>
#include <string>
#include <string_view>
#include "base/bit_cast.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "components/cbor/constants.h"
namespace cbor {
Writer::~Writer() { … }
std::optional<std::vector<uint8_t>> Writer::Write(const Value& node,
const Config& config) { … }
std::optional<std::vector<uint8_t>> Writer::Write(const Value& node,
size_t max_nesting_level) { … }
Writer::Writer(std::vector<uint8_t>* cbor) : … { … }
bool Writer::EncodeCBOR(const Value& node,
int max_nesting_level,
bool allow_invalid_utf8) { … }
void Writer::StartItem(Value::Type type, uint64_t size) { … }
void Writer::SetAdditionalInformation(uint8_t additional_information) { … }
void Writer::SetUint(uint64_t value) { … }
size_t Writer::GetNumUintBytes(uint64_t value) { … }
}