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 prot...@googlegroups.com
Hello,
I'm using the C version of protobuf. I'm wondering if there is a way to not allocate memory dynamically to serialize/deserialize a message. In other words, is there a "ZERO ALLOCATION" method to use it ?
Best regards,
Julien.
jpa
unread,
Aug 4, 2012, 7:12:47 AM8/4/12
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 prot...@googlegroups.com
You could use nanopb, which uses only static allocation:
In answer to your question, protobuf-c requires dynamic memory
allocation to deserialize a message. If you are trying to avoid memory
allocation, you may be interested in the "nanopb" implementation
instead: