On Tuesday, January 22, 2013 1:05:25 AM UTC+8, anand ilkal wrote:
> Hi,
> I have a requirement where i need to read byte stream from socket 
> (non-null terminated) and serialize the data before feeding to processing 
> entity.
> 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 protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to