Groups
Groups
Sign in
Groups
Groups
Protocol Buffers
Conversations
About
Send feedback
Help
GetArenaNoVirtual is returning no Arena even after creating the message using Arena
47 views
Skip to first unread message
LakshmiKanth Gupta
unread,
Dec 2, 2022, 3:39:24 AM
12/2/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
message MyRec1
{
int32 a=1;
}
message MyRec
{
MyRec1 rec = 1;
}
auto *rec= google::protobuf::Arena::Create<MyRec>(arena);
rec->mutable_rec()->set_a(100);
mtable_rec() is creating memory using new...Arena which I have used for creating MyRec is not used.
Please help.
Reply all
Reply to author
Forward
0 new messages