// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "serializable.h" #include <utility> namespace crdtp { // ============================================================================= // Serializable - An object to be emitted as a sequence of bytes. // ============================================================================= std::vector<uint8_t> Serializable::Serialize() const { … } namespace { class PreSerialized : public Serializable { … }; } // namespace // static std::unique_ptr<Serializable> Serializable::From(std::vector<uint8_t> bytes) { … } } // namespace crdtp