Re: ZeroCopyInputStream behavior

2009-03-03 Thread aepensky
Thanks for the quick response... So, to do an RPC implementation over a stream channel (e.g. TCP), where the message length is being sent in advance of the message body, the fastest way would still be (1) allocate bytes[length] (2) stream.read(bytes, length) (3) message.ParseFromArray(bytes,

Re: ZeroCopyInputStream behavior

2009-03-03 Thread Kenton Varda
On Tue, Mar 3, 2009 at 12:20 PM, aepensky apen...@gmail.com wrote: Thanks for the quick response... So, to do an RPC implementation over a stream channel (e.g. TCP), where the message length is being sent in advance of the message body, the fastest way would still be (1) allocate