chromium/components/cbor/values.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/cbor/values.h"

#include <new>
#include <ostream>
#include <string_view>
#include <utility>

#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_util.h"
#include "components/cbor/constants.h"

namespace cbor {

// static
Value Value::InvalidUTF8StringValueForTesting(std::string_view in_string) {}

Value::Value() noexcept :{}

Value::Value(Value&& that) noexcept {}

Value::Value(Type type) :{}

Value::Value(SimpleValue in_simple)
    :{}

Value::Value(bool boolean_value) :{}

Value::Value(double float_value)
    :{}

Value::Value(int integer_value)
    :{}

Value::Value(int64_t integer_value) :{}

Value::Value(base::span<const uint8_t> in_bytes)
    :{}

Value::Value(base::span<const uint8_t> in_bytes, Type type)
    :{}

Value::Value(BinaryValue&& in_bytes) noexcept
    :{}

Value::Value(const char* in_string, Type type)
    :{}

Value::Value(std::string&& in_string, Type type) noexcept :{}

Value::Value(std::string_view in_string, Type type) :{}

Value::Value(const ArrayValue& in_array) :{}

Value::Value(ArrayValue&& in_array) noexcept
    :{}

Value::Value(const MapValue& in_map) :{}

Value::Value(MapValue&& in_map) noexcept
    :{}

Value& Value::operator=(Value&& that) noexcept {}

Value::~Value() {}

Value Value::Clone() const {}

Value::SimpleValue Value::GetSimpleValue() const {}

bool Value::GetBool() const {}

double Value::GetDouble() const {}

const int64_t& Value::GetInteger() const {}

const int64_t& Value::GetUnsigned() const {}

const int64_t& Value::GetNegative() const {}

const std::string& Value::GetString() const {}

const Value::BinaryValue& Value::GetBytestring() const {}

std::string_view Value::GetBytestringAsString() const {}

const Value::ArrayValue& Value::GetArray() const {}

const Value::MapValue& Value::GetMap() const {}

const Value::BinaryValue& Value::GetInvalidUTF8() const {}

void Value::InternalMoveConstructFrom(Value&& that) {}

void Value::InternalCleanup() {}

}  // namespace cbor