#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 = …;
static constexpr size_t kMaxBodySize = …;
}
ErrorOr<std::vector<uint8_t>> Serialize(const proto::CastMessage& message) { … }
ErrorOr<DeserializeResult> TryDeserialize(ByteView input) { … }
}
}