summaryrefslogtreecommitdiff
path: root/chromium/third_party/inspector_protocol/crdtp/serializable.cc
blob: d5c48c25d4ce8892d906572c72330882befe5c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "serializable.h"

namespace crdtp {
// =============================================================================
// Serializable - An object to be emitted as a sequence of bytes.
// =============================================================================

std::vector<uint8_t> Serializable::TakeSerialized() && {
  std::vector<uint8_t> out;
  AppendSerialized(&out);
  return out;
}
}  // namespace crdtp