chromium/third_party/openscreen/src/cast/common/channel/message_framer.cc

// 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 "cast/common/channel/message_framer.h"

#include <stdlib.h>
#include <string.h>

#include <limits>

#include "cast/common/channel/proto/cast_channel.pb.h"
#include "util/big_endian.h"
#include "util/osp_logging.h"

namespace openscreen::cast {
namespace message_serialization {

namespace {

static constexpr size_t kHeaderSize =;

// Cast specifies a max message body size of 64 KiB.
static constexpr size_t kMaxBodySize =;

}  // namespace

ErrorOr<std::vector<uint8_t>> Serialize(const proto::CastMessage& message) {}

ErrorOr<DeserializeResult> TryDeserialize(ByteView input) {}

}  // namespace message_serialization
}  // namespace openscreen::cast