This would be a really useful method on CodedInputStream
public int  getTotalBytesRead() {
 return totalBytesRetired + bufferPos;
}

It good becuase it allows you to record positions in message streams
for inplace editing of things like transaction id, and inplace
persitience of parts of messages without the need for a byte copy.

What do people think about including it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to