I\'m using protocol buffers 3 in c#. I\'m trying to bounce through a stream to find the start locations of each message, without actually Deserialising the messages. All message
This behaviour is due to CodedInputStream
buffering the original stream as you can see in the source code. It is probably unsuitable for manually reading and seeking through a stream. An alternative is to use parts of Marc Gravell's source code for reading a varint
, available here, and move though the raw stream directly.