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 
https://groups.google.com/d/msg/protobuf/-/E6a8Y9FmDU4J.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to