Use protobuf::Messsge instead of protobuf::MessageLite

This commit is contained in:
Uwe Seimet 2021-08-28 12:00:11 +02:00
parent d6f7b491cf
commit 27136d7c20
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ using namespace rascsi_interface;
//
//---------------------------------------------------------------------------
void SerializeMessage(int fd, const google::protobuf::MessageLite& message)
void SerializeMessage(int fd, const google::protobuf::Message& message)
{
string data;
message.SerializeToString(&data);
@ -40,7 +40,7 @@ void SerializeMessage(int fd, const google::protobuf::MessageLite& message)
}
}
void DeserializeMessage(int fd, google::protobuf::MessageLite& message)
void DeserializeMessage(int fd, google::protobuf::Message& message)
{
// Read the header with the size of the protobuf data
uint8_t header_buf[4];

View File

@ -11,9 +11,9 @@
#pragma once
#include "google/protobuf/message_lite.h"
#include "google/protobuf/message.h"
#include "rascsi_interface.pb.h"
void SerializeMessage(int, const google::protobuf::MessageLite&);
void DeserializeMessage(int, google::protobuf::MessageLite&);
void SerializeMessage(int, const google::protobuf::Message&);
void DeserializeMessage(int, google::protobuf::Message&);
int ReadNBytes(int, uint8_t *, int);