Created
January 11, 2018 18:08
-
-
Save JohnMurray/74a076aeb91671a42d15189c4f3bf918 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <google/protobuf/arena.h> | |
using namespace google::protobuf; | |
void main() { | |
Arena arena; | |
auto msg = Arena::CreateMessage<MyProto>(&arena); | |
setup_myproto(msg, 1); | |
push_to_queue(msg); | |
msg->Clear(); | |
setup_myproto(msg, 2); | |
push_to_queue(msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment