I’m learning the implementation of protobuf. However, there is one point that i just cannot understand. How can the framework serialize a sub-message(object) into a buffer with a variable head, even sometimes it’s length is really hard to figure out! Serialize it to somewhere else and copy it into buffer later?
I’m learning the implementation of protobuf. However, there is one point that i just
Share
There are at least four ways of doing that I can think of, off the top of my head – “which” is an implementation detail, as long as it gets the answer right:
I’ve implemented it at least 3 of these ways, at different times!