In your specific case, you are returning a reference to 'this', since the return type of the function is a reference (&).
Speaking about the size of returned memory, it coincides with
virtual ::google::protobuf::Message* GetProtoMsg() { return this; }
But use during the conversation is different.
During the call, you invoke saving the return value of the function with something like:
Message& m = GetProtoMsg();
Lake
source share