chromium/third_party/angle/src/common/serializer/JsonSerializer.cpp

//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// JsonSerializer.cpp: Implementation of a JSON based serializer
// Note that for binary blob data only a checksum is stored so that
// a lossless  deserialization is not supported.

#include "JsonSerializer.h"

#include "common/debug.h"

#include <anglebase/sha1.h>
#include <rapidjson/document.h>
#include <rapidjson/filewritestream.h>
#include <rapidjson/ostreamwrapper.h>
#include <rapidjson/prettywriter.h>

namespace angle
{

js;

JsonSerializer::JsonSerializer() :{}

JsonSerializer::~JsonSerializer() {}

void JsonSerializer::startGroup(const std::string &name)
{}

void JsonSerializer::endGroup()
{}

void JsonSerializer::addBlob(const std::string &name, const uint8_t *blob, size_t length)
{}

void JsonSerializer::addBlobWithMax(const std::string &name,
                                    const uint8_t *blob,
                                    size_t length,
                                    size_t maxSerializedLength)
{}

void JsonSerializer::addCString(const std::string &name, const char *value)
{}

void JsonSerializer::addString(const std::string &name, const std::string &value)
{}

void JsonSerializer::addVectorOfStrings(const std::string &name,
                                        const std::vector<std::string> &value)
{}

void JsonSerializer::addBool(const std::string &name, bool value)
{}

void JsonSerializer::addHexValue(const std::string &name, int value)
{}

const char *JsonSerializer::data()
{}

std::vector<uint8_t> JsonSerializer::getData()
{}

void JsonSerializer::ensureEndDocument()
{}

size_t JsonSerializer::length()
{}

rapidjson::Value JsonSerializer::makeValueGroup(SortedValueGroup &group)
{}

void JsonSerializer::addValue(const std::string &name, rapidjson::Value &&value)
{}
}  // namespace angle