On Tuesday, January 22, 2013 1:05:25 AM UTC+8, anand ilkal wrote:
> I have a requirement where i need to read byte stream from socket
> (non-null terminated) and serialize the data before feeding to processing
> how can i define non-null terminated byte stream in protobuf?
The common practice is to divide the stream into blocks, each block starts
with a fix-sized header containing the length of the content and the
content is a serialized protobuf message.
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at