#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "mojo/public/cpp/base/proto_wrapper.h"
#include <limits>
#include "base/check_op.h"
#include "third_party/protobuf/src/google/protobuf/message_lite.h"
namespace mojo_base {
ProtoWrapper::ProtoWrapper() = default;
ProtoWrapper::ProtoWrapper(mojo::DefaultConstruct::Tag passkey) { … }
ProtoWrapper::~ProtoWrapper() = default;
ProtoWrapper::ProtoWrapper(ProtoWrapper&& other) = default;
ProtoWrapper& ProtoWrapper::operator=(ProtoWrapper&& other) = default;
ProtoWrapper::ProtoWrapper(const google::protobuf::MessageLite& message) { … }
ProtoWrapper::ProtoWrapper(base::span<const uint8_t> data,
std::string type_name,
base::PassKey<ProtoWrapperBytes> passkey) { … }
bool ProtoWrapper::DeserializeToMessage(
google::protobuf::MessageLite& message) { … }
}